From 8bc1acc6724fc155ebcda03984f8f4730a03e806 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Thu, 10 Sep 2015 15:03:35 +0200 Subject: [PATCH] documentation: FAQ: added item "How can I backup from non-btrfs hosts?" --- doc/FAQ.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/FAQ.md b/doc/FAQ.md index 571a32c..d1c00f1 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -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) ? ---------------------------------------------------