Skip to content

Commit d89d542

Browse files
committed
docs(blk): update
1 parent 84d9a54 commit d89d542

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

pages/block-storage/api-cli/transfer-local-data-to-volume.mdx

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ You can transfer files from your local machine to your Instance's remote Block v
1616
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
1717
- An [Instance](/instances/concepts/#instance)
1818
- [Attached](/block-storage/how-to/attach-a-volume/) a Block Storage volume to your Instance
19+
- Installed [Rsync](https://rsync.samba.org/)
1920

2021
1. Check that rsync is installed on your local machine with the following command:
2122
```
@@ -26,38 +27,16 @@ You can transfer files from your local machine to your Instance's remote Block v
2627

2728
```sh no-copy
2829
rsync version 3.1.3 protocol version 31
29-
Copyright (C) 1996-2018 by Andrew Tridgell, Wayne Davison, and others.
30-
Web site: http://rsync.samba.org/
31-
Capabilities:
32-
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
33-
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
34-
append, ACLs, xattrs, iconv, symtimes, prealloc
35-
36-
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
37-
are welcome to redistribute it under certain conditions. See the GNU
38-
General Public Licence for details.
3930
```
4031

41-
<Message type="tip">
42-
If you get a `command not found` output (or similar), you need to install `rsync`:
43-
- On Linux Ubuntu and Debian systems, you can do this with the APT package tool using the `sudo apt install rsync` command.
44-
- For Linux CentOS/ Fedora, you can use the YUM package manager: `sudo yum install rsync`.
45-
- On Mac OSX with the Homebrew package manager, you can use `brew install rsync`.
46-
</Message>
32+
2. 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:
4733

48-
2. On your local machine, open a new terminal and use the following command to create a file called `hello-world.txt`:
4934
```
50-
nano hello-world.txt
35+
rsync -a path/to/file.txt root@<your_instance_ip>:/mnt/block-volume
5136
```
5237

53-
3. Enter the text `Hello World!`.
54-
55-
4. Press `Ctrl+O`, then `Enter`, then `Ctrl+X` to save and exit the file.
56-
57-
5. Enter the following command to transfer the file to your Instance's mounted block volume. Ensure that you use your own Instance's IP address:
58-
59-
```
60-
rsync -a hello-world.txt root@<your_instance_ip>:/mnt/block-volume
61-
```
62-
63-
The file is now transferred. You can connect to your Instance again, and use the command `cd /mnt/block-volume ; ls` to check that the file appears in the directory.
38+
The file is now transferred. You can connect to your Instance again, and run the command below to check that your file is present in your Block Storage volume:
39+
```bash
40+
ls /mnt/block-volume
41+
```
42+
Refer to the [official Rsync documentation](https://download.samba.org/pub/rsync/rsync.1#OPTION_SUMMARY) for more information on the different options available.

0 commit comments

Comments
 (0)