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

Documentation is unclear #80

Open
pertoft opened this issue Nov 24, 2020 · 0 comments
Open

Documentation is unclear #80

pertoft opened this issue Nov 24, 2020 · 0 comments

Comments

@pertoft
Copy link

pertoft commented Nov 24, 2020

Hi,

I am trying to use Backy2 to perform scheduled backups of Ceph RBD volumes.

I have extended the incremental backup example script to tag each backup with an e.g. hourly tag.
Full:
backy2 backup -t "$TAG" -s "$SNAPNAME" -r "$TEMPFILE" rbd://"$POOL"/"$VM"@"$SNAPNAME" $VM
Incremental:
backy2 backup -t "$TAG" -s "$SNAPNAME" -r "$TEMPFILE" -f "$BACKY_SNAP_VERSION_UID" rbd://"$POOL"/"$VM"@"$SNAPNAME" "$VM"

This will create and initial full backup and incremental backups.

Now if I want to schedule the backups, i need to run a scheduled script.
Looking at the example: https://github.com/wamdam/backy2/blob/master/demo/backup.sh

The script should run a backy2 due -s "schedule"
Example:
`root@os-backup:~/backy2# backy2 due -s hourly
INFO: [backy2.logging] $ /usr/bin/backy2 due -s hourly
+---------------------------------------------+------------+---------------------+
| name | schedulers | expire_date |
+---------------------------------------------+------------+---------------------+
| volume-14208e3d-7196-4f3a-9aa2-a070e8eb5428 | hourly | 2020-11-24 13:47:33 |
+---------------------------------------------+------------+---------------------+
INFO: [backy2.logging] Backy complete.

root@os-backup:~/backy2#`

Now it become unclear as the example does not contain a source volume name.

Should the script run a backy2 backup "volume-name" -t "TAG" -e "Expire ts" for each volume?
Or is there a clever way to do it for all expired tags?
Why shall the tag and expire be appended again?

It would be really nice with a clarification in the docs.

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

1 participant