Sending data from linux to linux via rsync

23.11.2021 | 711 | SQL

Examples of transferring data between two servers on linux using the rsync program

Sending a single file:
rsync -e ssh --progress -lzuogthvr --compress-level=9 /home/file.tgz root@remote-server.ru:/home/file.tgz
Sending a folder with an exception by mask:
rsync -e ssh --progress -lzuogthvr --compress-level=9
/home/test root@remote-server.ru:/home/test --exclude '/home/test/exclude-folder-name'
Sending a file using scp, via sFTP protocol:
scp /path_to_local_file root@remote-server.ru:/path_to_remote_file



← Back

Comments (0)