bookmark every snapshot

replication logic already supports bookmarks \o/

refs #34
This commit is contained in:
Christian Schwarz
2017-11-12 23:05:18 +01:00
parent 51af880701
commit ed68bffea5
3 changed files with 45 additions and 4 deletions

View File

@ -46,6 +46,7 @@ func (p *Pruner) Run(ctx context.Context) (r []PruneResult, err error) {
log := log.WithField(logFSField, fs.ToString())
// only prune snapshots, bookmarks are kept forever
snapshotFilter := NewTypedPrefixFilter(p.SnapshotPrefix, zfs.Snapshot)
fsversions, err := zfs.ZFSListFilesystemVersions(fs, snapshotFilter)
if err != nil {