-
I have read the documentation through a couple of times now but it leaves me uncertain about how zfs_autobackup prefers / handles the creation of snapshots? It sounds like it can (must?) be used without using another program such as zfs-auto-snapshot or sanoid to create automated snapshots but what if the user wants to use z-a-s (read: I am already using and trust z-a-s) on the source machine instead of zfs_autobackup creating its own snapshots first every time it is run? I can't see an option to only transfer existing snapshots? I want to use zfs-auto-snaphot on my source machine to create the snapshots but in the zfs_autobackup docs it seems to imply that zfs_autobackup will create a new snapshot (in every labelled dataset?) every time is run in a non-test mode? Can this be disabled so that it never creates new snapshots on the source? I don't want zfs_autobackup to create any snapshots at all on the source machine, I just want it to transfer all of the latest snapshots from all of the datasets on the source machine onto the destination machine and additionally I want it to thin out all snapshots in all datasets on the destination machine only so that only keeps 90 days / 12 weeks worth of snapshots in all of the datasets. z-a-s handles the destroying of snapshots on the source side so no need for zfs_autobackup to do any thinning on the source. I am hoping the thinning works reliably on the destinstion side. sanoid's auto-pruning didn't work at all for me which is why I'm looking into this as an alternative. Another question is regarding
I want to recursively replicate all of the datasets in /pool/home on the source into /pool2/home on the destination so it sounds like I need to use Why then should I need to label/select the whole pool on the source if its only Finally, I presume that zfs_autobackup can work, on the destination side at least, as non-root users if we delegate the required permissions to the correct user? What are the minimum set of zfs permissions required for it to work on either side? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 39 replies
-
thats a lot of questions, and some of them you have to figure out and --test yourself. :) you can use --no-snapshot to not create snapshots you can --keep-source=10000 to not delete snapshots from the source also the snapshots should have to correct format, or use --snapshot-format. otherwise use --other-snapshot and prune them yourself on the target. this all sounds like too much of a hassle to be honest..just let zfs-autobackup create its own snapshots to make your life easier. You can still use zfs-auto-snapshot, zfs-autobackup will just ignore those. |
Beta Was this translation helpful? Give feedback.
-
If a user is doing using zab for pull backups and didn't want to let zfs-autobackup create any snapshots on the source machine, does zfs-autobackup still work fine for replicating existing snapshots to the target? Obviously zfs-autobackup's source snapshot trimming command becomes useless in such cases. |
Beta Was this translation helpful? Give feedback.
thats a lot of questions, and some of them you have to figure out and --test yourself. :)
you can use --no-snapshot to not create snapshots
you can --keep-source=10000 to not delete snapshots from the source
also the snapshots should have to correct format, or use --snapshot-format. otherwise use --other-snapshot and prune them yourself on the target.
this all sounds like too much of a hassle to be honest..just let zfs-autobackup create its own snapshots to make your life easier. You can still use zfs-auto-snapshot, zfs-autobackup will just ignore those.