rsync <command> <sumber> <target>
command :
a = archive
r = recursive
v = verbose
h = human read
P = progress
e = external command (-e “ssh -p <port>”)
n = dry run / test mode
Contoh :
Local Copy
rsync -vrP folder1 folder2
Local to Remote Copy
rsync -vrP folder1/ <user>@<host/ip server>:/folder2/
Remote to Local Copy
rsync -vrP <user>@<host/ip server>:/folder1/ folder2/
Copy over SSH
rsync -vrP -e "ssh -p 22" folder1/ <user>@<host/ip server>:/folder2/
Dry Run
rsync --dry-run -v folder1 folder2

Contoh Proses Rsync Berhasil
