Hello @mgutt! I was looking at your script and really like it. I think this would be great for backups from my Unraid to a NAS or some other external storage source. I have a question and I might be missing some information. Can this script be modified to not make incremental backups but backup one Unraid system to a second off site Unraid that I have running? My home unraid is my primary (now) but I still have files on my old unraid off site. I would like to backup all appdata and containers and plugins from my off site to home first and have it merge and keep newer files (assuming my home Unraid has more recent files). The problem I ran into is that some files are too large and are timing and erroring out (my nextcloud data). I also have manually tried backing up my containers and then restoring them on my home one. I have the appdata folder and data but the container is not showing up in my home unraid to start. I tried installing the container and then running it but it is still isn't working right and throwing errors (thinking something with my database isn't syncing correctly leading to problems).
Sorry for the long post and any confusion, if I need to I can try to clearify but the gist is:
Off site unraid full backup to Home unraid (including docker containers and configs, etc.)
Need the home unraid to be able to run all containers from sync (ex MariaDB for NExtcloud user data both synced from off site)
Need to keep newer and existing data on Home unraid.
After above is working, have my Home Unraid as my primary that then syncs back to offsite.
Keep off site as a failover if Home unraid dies (I have an idea on how to do this with a load balancer in the cloud ran through cloudflare) -- This means the failover needs to have all my docker containers and auto start settings and appdata backup.
Edit:
On your script for the custom command would I be able to change the rsync custom one to something like this?
rsync -Pav -e "ssh -i $HOME/.ssh/key.pubkey" /from/dir/ username@hostname:/to/dir/
I don't understand your script well enough to know if this will break something since your script custom command is:
alias rsync='sshpass -p "<password>" rsync -e "ssh -o StrictHostKeyChecking=no"'