Transferring local data to a Block Storage volume
You can transfer files from your local machine to your Instance's remote Block volume with rsync, a tool for efficiently transferring and copying files. The rsync utility is pre-installed on most Linux distributions and macOS.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- An Instance
- Attached a Block Storage volume to your Instance
- Installed Rsync
-
Check that rsync is installed on your local machine with the following command:
rsync --versionAn output similar to the following displays:
rsync version 3.1.3 protocol version 31 -
Run the following command to transfer the file to your Instance's mounted block volume. Ensure that you use your own Instance's IP address:
rsync -a path/to/file.txt root@<your_instance_ip>:/mnt/block-volume -
The file is now transferred. Connect to your Instance again, then run the command below to check that your file is present in your Block Storage volume:
ls /mnt/block-volume
Refer to the official Rsync documentation for more information on the different options available.