# For Linux Server

Rclone is an open-source command-line program that helps you manage, sync, and transfer files and directories across different cloud storage services and local systems.

{% embed url="<https://youtu.be/UojhD_jVZX8>" %}

## **Prerequisites:**&#x20;

Select any Linux Operating system to perform these processes.

We have chosen the operating system Ubuntu 22.04

Click on the link to Launch [instance](https://docs.neevcloud.com/neevcloud-products/computes/getting-started-launch-vms).

For Zata.ai configuration:

* Click on the Zata [login page](https://auth.zata.ai/realms/zata/protocol/openid-connect/auth?client_id=zatacloud_client\&redirect_uri=https%3A%2F%2Fmy.zata.ai%2F\&state=dd2b5305-f7f5-4922-8639-4b0c62060c2f\&response_mode=fragment\&response_type=code\&scope=openid\&nonce=646d8811-0870-469c-9045-9e13d0fdd1b3\&code_challenge=wRG6I1qb9wdmY4unvHhPYaYq5WWM-801w72AYyLi8xY\&code_challenge_method=S256).
* Zata Bucket - See our [Bucket Creation Guide](https://docs.zata.ai/manage/bucket/create-bucket)
* Zata Access & Secret Key Pair - See our [Access Keys Guid](https://docs.zata.ai/manage/access-keys/creating-a-new-access-key)e
* For more information about the [zata.ai](https://zata.ai/)

After successfully launching the instance, follow these steps:

### Update && Upgrade the system.

```
sudo apt-get update -y
sudo apt-get upgrade -y
```

Transfer Data to Zaat.ai Bucket Using Rclone on Ubuntu.

## Install and configure the rclone. <a href="#install-the-configure-the-rclone" id="install-the-configure-the-rclone"></a>

Install the rclone.

```
sudo apt-get install rclone -y
```

### To configure rclone for Zata.ai.

Run the following command to configure ' **rclone** '

When you run the command above, follow these steps:

Choose 'n' to create a new remote

Name: Zata (Give the name of the remote)

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FtCnA1mldbor3wh8RpSLd%2Fimage.png?alt=media&#x26;token=0493ebbb-0798-438d-b938-b63f44d9ebe7" alt=""><figcaption></figcaption></figure>

Type of storage to configure: '4'; these values vary depending on the rclone version.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2Fn3cTbMovYGXNhGclWguN%2Fimage.png?alt=media&#x26;token=107e5281-eec0-44b2-86da-11c5ae993cf3" alt=""><figcaption></figcaption></figure>

Choose your S3 Provider to choose '13' for Wasabi object storage, these numbers are very dependent on the rclone versions.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2F7qtJUrUBbUlj68UQ6yMJ%2Fimage.png?alt=media&#x26;token=bcfcc4b6-f540-476f-92e5-95b7926c6b80" alt=""><figcaption></figcaption></figure>

Get credentials from runtime (environment variables or metadata if no env vars). This only applies if access\_key\_id and secret\_access\_key are blank. Enter a boolean value (true or false). Press Enter for the default ("false"). Choose a number from below, or type in your value

**env\_auth: true**

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FtotMxrt94hR6erMDzVwA%2Fimage.png?alt=media&#x26;token=aa4239ff-077d-447e-a59a-74a33499d357" alt=""><figcaption></figcaption></figure>

**Access & Secret key** - We have created the above in the zata.ai section.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FsHBFBE0AbTZE1z7OGbro%2Fimage.png?alt=media&#x26;token=2d1864fd-ecbe-43bd-b21d-40d59f8adc3f" alt=""><figcaption></figcaption></figure>

Region to connect to. Leave blank if you are using an S3 clone and you don't have an area. Enter a string value. Press Enter for the default. Choose a number from below, or type in your value

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FD9isRv1p2QINSJa8DQon%2Fimage.png?alt=media&#x26;token=a0ed3a59-b517-40ad-930e-877ee8dae2b2" alt=""><figcaption></figcaption></figure>

Endpoint for S3 API. Required when using an S3 clone. Enter a string value. Press Enter for the default. Choose a number from below, or type in your value

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FVCh2tH4dMAfbPzIbQLgc%2Fimage.png?alt=media&#x26;token=9c83d13a-347f-43ee-884f-97b045b4bf7c" alt=""><figcaption></figcaption></figure>

Note that this ACL is applied when server-side copying objects as S3

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2F2W6DwvApXBXz7kIH6WmK%2Fimage.png?alt=media&#x26;token=9ee7555f-e2a1-4355-b298-56c42a49c50c" alt=""><figcaption></figcaption></figure>

Note that this ACL is applied only when creating buckets.

After completing these processes, simply press Enter at each step

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FrGspmI9SIvVl0puDIB3f%2Fimage.png?alt=media&#x26;token=7aed8476-797a-4071-9167-ec5ad49e087a" alt=""><figcaption></figcaption></figure>

After this, all processes use the default configuration, so press Enter to continue.

This is the remote configuration completed after following these steps:

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2F4m4HOKRTz5ZB3zpaWYdB%2Fimage.png?alt=media&#x26;token=2db60980-d231-401f-bfb2-f1190c841a78" alt=""><figcaption></figcaption></figure>

Now complete the configuration to run these commands.

### To copy and move your data <a href="#to-copy-and-move-your-data" id="to-copy-and-move-your-data"></a>

You can run it accordingly.

```
 rclone copy   <file-name> zata:(bucket-name) --progress
```

```
 rclone move  <file-name> zata:(bucket-name) --progress
```

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FavreYnabEYgUoHxSRBdp%2Fimage.png?alt=media&#x26;token=27474c74-cd8f-494c-8452-48c421c1c5b3" alt=""><figcaption></figcaption></figure>

Zaat. Now, navigate to the zata.ai bucket section, open the bucket, and check if the data has been transferred.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FZObJUwtZk46FkgsGFgpt%2Fimage.png?alt=media&#x26;token=e9c96e09-336f-40a8-b61b-bfd61ef1e2be" alt=""><figcaption></figcaption></figure>

Download or restore your server files from Zata to your local system.

```
rclone copy zata:(bucket_name) /path/to/local/directory
```

* `zata` Your rclone remote
* `your-bucket-name`The name of the bucket in Zata.ai.
* `/path/to/local/directory`Where do you want to restore the files

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FxU07U5qCKWzCsW3FLVXu%2Fimage.png?alt=media&#x26;token=67ba19e6-e475-45c5-a62c-7767ca6a1fcc" alt=""><figcaption></figcaption></figure>
