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

Add "resume only" option (not creating any snapshots) #18

Closed
digint opened this issue May 10, 2015 · 3 comments
Closed

Add "resume only" option (not creating any snapshots) #18

digint opened this issue May 10, 2015 · 3 comments

Comments

@digint
Copy link
Owner

digint commented May 10, 2015

(originally by @diraimondo)

I'm wondering if it would be possible to add an option (command-line and/or config) to let btrbk attempt to transfer all the already-created snapshots on source that are missing on target. This skipping any attempt to create further snaps.
This would fit in the following scenario:

  • a laptop where I periodically and/or manually create local snaps (like a local time-machine); this could happens even when away from home for many days; the configuration would lack any target and could keep, for example, at most 10 snaps to save space on laptop HD;
  • a server at home that frequently, every hour, try connect the laptop (if present). If there exist at least a new snap on laptop that are not present on server, it should be transferred. In this case it would be sufficient to get just the most recent, not all new snaps. (this looks the missing feature).

Thank you for your time.

@digint digint changed the title Add "resmue only" option (not creating any snapshots) Add "resumue only" option (not creating any snapshots) May 10, 2015
@digint
Copy link
Owner Author

digint commented May 10, 2015

In this scenario, we have two instances of btrbk:

  1. Laptop instance, run periodically and/or manually. Dedicated to create snapshots only.
  2. Fileserver instance, run periodically. Dedicated to grab snapshots created by another instance.

A configuration would look like this:

Laptop config:

volume /mnt/btr_pool
  subvolume home
    snapshot_dir             btrbk_snapshots
    snapshot_create_always   yes

Fileserver config:

volume ssh://my-laptop.com/mnt/btr_pool
  subvolume home
    snapshot_dir             btrbk_snapshots
    snapshot_preserve_daily  all   <-- don't delete any snapshots
    snapshot_create          no    <-- new feature requested
    resume_missing           yes   <-- resume according to "target_preserve_*" options

    target send-receive  /mnt/btr_backup/my-laptop.com

The configuration above assumes a new (not yet implemented) option snapshot_create no.
The configuration option snapshot_create_always will be deprecated in favor of:

  • snapshot_create always: same behaviour as deprecated snapshot_create_always yes
  • snapshot_create ondemand: same behaviour as deprecated snapshot_create_always no
  • snapshot_create no: new feature, never create any snapshots

@digint digint changed the title Add "resumue only" option (not creating any snapshots) Add "resume only" option (not creating any snapshots) May 10, 2015
@digint
Copy link
Owner Author

digint commented May 15, 2015

Implemented in: 7251915

@digint
Copy link
Owner Author

digint commented May 21, 2015

Included in v0.18.0

@digint digint closed this as completed May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant