What is rsync?
rsync is a way to transfer and synchronize files efficiently between one server and another and only different files are synced. The rsync command is very suitable to be used as a backup, because only different files will be synchronized, so it will save more time and resources.
How to Install rsync on server Linux
install rsync on server Debian/ Ubuntu
apt-get install rsync
install rsync on server Centos/ Fedora
yum install rsync
How to Use rsync
Transfer File Server to Server with RSYNC on port 22
for migration file
rsync filehosteko.zip root@xxx.xxx.xxx.xxx:/home/folder
for migration Directory/ Folder
rsync -avzh folderhost root@xxx.xxx.xxx.xxx:/home/folder
info:
folderhost: folrder you want to migrate/copy
xxx.xxx.xxx.xxx= destination IP server
Transfer File Server to Server with RSYNC with Custom port
for migration file
rsync -e 'ssh -p 1234' filehost.zip root@xxx.xxx.xxx.xxx:/home/folder
for migration Directory/ Folder
rsync -avzh -e 'ssh -p 1234' folderhost root@xxx.xxx.xxx.xxx:/home/folder
info:
folderhost= folder you want to migrate/copy
1234 = destination Port SSH
xxx.xxx.xxx.xxx= destination IP server
0 coment�rios:
Posting Komentar