Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request replicate not recursive #9

Open
cpzengel opened this issue Feb 12, 2016 · 1 comment
Open

Feature Request replicate not recursive #9

cpzengel opened this issue Feb 12, 2016 · 1 comment

Comments

@cpzengel
Copy link

Hi,

is there a way not to replicate houry and frequent snapshots between dailys?
I removed the -R at zfs send, but it seems it still does ist!

Cheers
Chriz

@adaugherity
Copy link
Owner

At first I thought this wasn't possible -- that an incremental send/receive will include all intervening snapshots, but after some quick testing I realize I was wrong. Using the -i option to zfs send instead of -I will do an incremental send without including intervening snapshots. (The -R option is for a recursive send [called "replication stream" in the man page] which includes child filesystems, properties, etc. and is orthogonal to both incremental options.)

I'll have to do more testing and figure out the best way to include this option without causing problems (or at least make sure the caveats are clearly documented). I can see a potential problem where e.g. if you miss some backups, you probably do want all the intervening dailies copied next time you back up, not just the latest one.

Please note that I use zfs recv -F to remove snapshots on the destination which are not present on the source, so that when they get rotated out on the source, they also get removed from the destination rather than remaining indefinitely to clutter it up. (People have already requested disabling this option, so I do plan to make that configurable, but probably won't change the default, as I don't want to break my current workflow.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants