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: Add a flag to lxc copy/ lxc volume copy to only create new snapshots and do not delete old snapshots. #14473

Open
manfromafar opened this issue Nov 15, 2024 · 1 comment
Labels
Feature New feature, not a bug

Comments

@manfromafar
Copy link

Storage backend zfs

For backups we like to keep snapshots on remote backup servers for longer then what is on the local machines.
This means there could be say 10 snapshots locally and 100 snapshots remotely for the same container.
Too facilitate this we've written our own backup wrapper that sends the snapshots to the remote server and injects the snapshots into the lxd database for later use.
The reason we've had to do this is that even though copy does have a --refresh flag to make local and remote trees identical, this also causes older snapshots on the remote system to get deleted, hence we can't use this.

I'd like to see a new flag or maybe refresh could be reworked I don't know to not remove old snapshots on a remote host.
Maybe it would be better to add a option to refresh that says I want to refresh snapshots 5 to latest on the remote system. Which would leave historical snapshots before 5 alone on the remote system.

@MggMuggins MggMuggins added the Feature New feature, not a bug label Nov 15, 2024
@MggMuggins
Copy link
Contributor

@mionaalex Loosely related to #14427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants