Hi,
I got a pool "HDDpool" and want to backup it aperiodically every 2 - 6 weeks to the pool "BACKUPpool" using a replication task or a custom backup script using "zfs send | zfs recieve" but I still want daily/weekly snapshots so I'm able to rollback.
I created a recursive daily snapshot task running every day from monday to saturday with a snapshot lifetime of 7 days.
And I created a recursive weekly snapshot task running only every sunday with a snapshot lifetime of 4 weeks.
I'm not sure how some options of the replication task are working in detail.
The "hold pending snapshots" option sounds like it would prevent snapshots from being auto deleted if they are needed by the replication for incremental tasks:
2.) What happens if I disable "run automatically" in the replication task to just do the backup manually. Will the snapshots be protected even if the replication doens't "failed" because it is only run once every 2 to 6 weeks?
3.) Is it ok to set the "Snapshot Retention Policy" to "Same as Source" or will this break the incremental replication because daily snapshots will be deleted after a week even if they are needed?
What is the right way to do this so that every snapshot needed to incrementally replicate a pool will be saved by the snapshot retention policy?
Is it possible to do this without setting the snapshot lifetime of daily and weekly snapshot tasks to something very long like 3 months?
I got a pool "HDDpool" and want to backup it aperiodically every 2 - 6 weeks to the pool "BACKUPpool" using a replication task or a custom backup script using "zfs send | zfs recieve" but I still want daily/weekly snapshots so I'm able to rollback.
I created a recursive daily snapshot task running every day from monday to saturday with a snapshot lifetime of 7 days.
And I created a recursive weekly snapshot task running only every sunday with a snapshot lifetime of 4 weeks.
I'm not sure how some options of the replication task are working in detail.
The "hold pending snapshots" option sounds like it would prevent snapshots from being auto deleted if they are needed by the replication for incremental tasks:
1.) What happens if I only add the weekly and not the daily snapshot task to the "periodic snapshot tasks" list of the replication task? Will the daily snapshots be protected too?Prevent source system snapshots that have failed replication from being automatically removed by the Snapshot Retention Policy.
2.) What happens if I disable "run automatically" in the replication task to just do the backup manually. Will the snapshots be protected even if the replication doens't "failed" because it is only run once every 2 to 6 weeks?
3.) Is it ok to set the "Snapshot Retention Policy" to "Same as Source" or will this break the incremental replication because daily snapshots will be deleted after a week even if they are needed?
What is the right way to do this so that every snapshot needed to incrementally replicate a pool will be saved by the snapshot retention policy?
Is it possible to do this without setting the snapshot lifetime of daily and weekly snapshot tasks to something very long like 3 months?