> For the complete documentation index, see [llms.txt](https://docs.zata.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zata.ai/knowledgebase/how-to-transfer-data-to-zata.ai-bucket-using-rclone/for-linux-server.md).

# 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:**

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="/files/bi2RvhgtXExb7V0APf0x" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/11X6QQfIwznIcUxxXFlU" 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="/files/MBEnpKDQ1dH5MXOVvtZj" 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="/files/8qckQYpCZVyZ51rme5et" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/sdNmNGni24I3kLfovQrg" 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="/files/t1IP0GQz68d3673nofEK" 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="/files/3zLs9cDPe9xB3leSeFBP" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/IZf5Jvc7edutT3zgHHKc" 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="/files/HnV1gtdLSAsRxagebouV" 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="/files/faI3YbkQqrGWzhnCxbyn" 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="/files/Il4az1mwjZG61z1hTVau" 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="/files/iYG8qm6IlYxAAchXvifj" 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="/files/PVyOqks5skcwNbft1cuc" alt=""><figcaption></figcaption></figure>
