documentation: FAQ: added item "How can I backup from non-btrfs hosts?"

pull/48/head
Axel Burri 2015-09-10 15:03:35 +02:00
parent 8ba2d6e6b1
commit 8bc1acc672
1 changed files with 28 additions and 0 deletions

View File

@ -1,6 +1,34 @@
btrbk FAQ
=========
How can I backup from non-btrfs hosts?
--------------------------------------
First create a btrfs subvolume on the backup server:
# btrfs subvolume create /mnt/btr_backup/myhost_sync
In your daily cron script, prior to running btrbk, sync your source to
`myhost_sync`, something like:
rsync -a --delete -e ssh myhost.mydomain.com://data/ /mnt/btr_backup/myhost_sync/
Then run btrbk, with myhost_sync configured *without any targets* as
follows:
volume /mnt/btr_backup
subvolume myhost_sync
snapshot_name myhost
snapshot_create always
snapshot_preserve_daily 14
snapshot_preserve_weekly 20
snapshot_preserve_monthly all
This will produce daily snapshots `/mnt/btr_backup/myhost.20150101`,
with retention as defined with the snapshot_preserve_* options.
Why is it not possible to backup '/' (btrfs root) ?
---------------------------------------------------