Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 479 Bytes

rsync.md

File metadata and controls

28 lines (19 loc) · 479 Bytes

rsync

  • using rsync to copy files
 rsync -avz -e "ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /hdd/files.txt [email protected]:/hdd/ 

mv file example

rsync -abv --remove-source-files /media/localbackup/* /media/remotebackup/

parallel example

 ls -1 -d /hdd1/log/* |parallel -X rsync -abv --remove-source-files {} /hdd2/log/

run it in background

nohup command > nohup.log 
Control + z
bg