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
Leave a Reply