Previous class
Cloning / Backup
Test First
rsync -avn /var/www/html/ root@ipaddress:/var/www/html/ -e "ssh -p 7822"
Run the Sync (as root) loggin in (as root on destination).
rsync -avz --rsync-path="sudo rsync" / root@ipaddress:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} -e "ssh -p 7822"
Run the Sync (as root) loggin in (as root on destination) with verbose output
rsync -avvvz --rsync-path="sudo rsync"root@ipaddress@:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} -e "ssh -p 7822"
Next class