How to copy entire server to a local directory using rsync

Use the following command to copy an entire server contents (while ignoring some files) to a local directory:

rsync --delete -azvv root@server-host-or-ip:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /Volumes/Storage/MyServerBackup

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *