I’m working on automating systems/infra backups of across my network. The backups will consist of items like VM files, config exports, etc. Not all of the systems have the same abilities/binaries/etc, such as rsync, cifs, ssh, etc.
To make it easy, my idea is this:
- Share out a general NFS on TrueNAS
- Automate each system to export its backup to the NFS
- In TrueNAS, create a script on a cronjob to parse the file name, then move it to the appropriate dataset based on the filename
Aside from having 20x unique network shares on TrueNAS for each system to export to, this is the best solution I can think of. However, I know that the underlying Debian OS is stripped down and doesn’t allow many things, so I wanted to check that this plan is doable and without any unintended downstream effects.
Edit to add: Additional Question
If I have a dataset owned by $user, and my script running the context of admin moves the file to that dataset, would that file inherit the permissions of the dataset, or would I have to also have the script chown the files?