steffen-wirth
8/17/2018 - 6:42 AM

rsync copy server to local

#a = archive mode
#v = increase verbose
#u = skip files that are newer on the receiver
#z = compress file data during the transfer

rsync -avzu -A --partial --stats --progress root@myserver.de:/var/www/htdocs ./foldertocopyin

rsync --partial --stats --progress –A –a –r –v --no-perms source aim

#use different ssh port
rsync -rvz -e 'ssh -p 222' --progress ./dir user@host:/path

#ctrl-z after type 'bg' to set it to the background jobs, view all bg jobs type 'jobs'