LostCore of Waga
7/27/2018 - 8:55 AM

rsync

Trasferire il contenuto della cartella "foo" nella cartella "foo" del server remoto

rsync -avzpgo -e "ssh -p 95986" foo/ root@192.168.0.101:/foo/
rsync -avzpgo foo/ root@192.168.0.101:/foo/

## FLAGS:

r – Recursive

l – Transfer any symlinks encountered

t – Preserve time stamps

p – Preserve permissions

g – Preserve groups

o – Preserve ownership

D – Preserve block and character devices

v – verbose

r – copies data recursively (but don’t preserve timestamps and permission while transferring data

a – archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group ownerships and timestamps

z – compress file data

h – human-readable, output numbers in a human-readable format