marvinko96 Posted April 23, 2020 Share Posted April 23, 2020 I want to backup my complete Unraid server to an unassigned external HDD with rsync. I only have one Disk in the array, one cache drive and no parity. For that I have the CA Appdata Backup/Restore v2, Unassigned Devices and User Scripts plugin installed. With the CA Appdata Backup/Restore v2 plugin, I backup the Unraid USB stick, the appdata and the libvirt image. So now the only thing which isn't backupped, is the media on the array and cache drive, right? My rsync command in the User Script plugin is rsync -av --delete --exclude '/mnt/disks/*' /mnt /mnt/disks/Backup/backup Is that too much? Do I only need to backup /mnt/cache and /mnt/disk1 or maybe only /mnt/user? I want the easiest way to restore my whole unraid server if it fails. Thanks for your help and sorry for my bad english. Quote Link to comment
testdasi Posted April 23, 2020 Share Posted April 23, 2020 It is too much because /mnt/user will duplicate /mnt/cache and /mnt/disk1. For fastest restoring from backup, rsync /mnt/cache + /mnt/disk# (where # is a number), with each location has its own directory in the backup drive. I know rsync has way to exclude stuff etc. but it's better in your case to have 2 separate lines in the script, 1 for /mnt/cache and 1 for /mnt/disk1. That way if there's interruption / crash / error etc., you know for sure what needs to be rerun. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.