From: Brendan Hide <brendan@swiftspirit.co.za>
To: Eric Mesa <ericsbinaryworld@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Understanding btrfs and backups
Date: Thu, 06 Mar 2014 23:17:57 +0200 [thread overview]
Message-ID: <5318E605.9060802@swiftspirit.co.za> (raw)
In-Reply-To: <loom.20140306T202159-329@post.gmane.org>
On 2014/03/06 09:27 PM, Eric Mesa wrote:
> Brian Wong wrote: a snapshot is different than a backup
> [snip]
>
> ...
>
> Three hard drives: A, B, and C.
>
> Hard drives A and B - btrfs RAID-1 so that if one drive dies I can keep
> using my system until the replacement for the raid arrives.
>
> Hard drive C - gets (hourly/daily/weekly/or some combination of the above)
> snapshots from the RAID. (Starting with the initial state snapshot) Each
> timepoint another snapshot is copied to hard drive C.
>
> [snip]...
>
> So if that's what I'm doing, do snapshots become a way to do backups?
An important distinction for anyone joining the conversation is that
snapshots are *not* backups, in a similar way that you mentioned that
RAID is not a backup. If a hard drive implodes, its snapshots go with it.
Snapshots can (and should) be used as part of a backup methodology - and
your example is almost exactly the same as previous good backup
examples. I think most of the time there's mention of an external
"backup server" keeping the backups, which is the only major difference
compared to the process you're looking at. Btrfs send/receive with
snapshots can make the process far more efficient compared to rsync.
Rsync doesn't have any record as to what information has changed so it
has to compare all the data (causing heavy I/O). Btrfs keeps a record
and can skip to the part of sending the data.
I do something similar to what you have described on my Archlinux
desktop - however I haven't updated my (very old) backup script to take
advantage of btrfs' send/receive functionality. I'm still using rsync. :-/
/ and /home are on btrfs-raid1 on two smallish disks
/mnt/btrfs-backup is on btrfs single/dup on a single larger disk
See https://btrfs.wiki.kernel.org/index.php/Incremental_Backup for a
basic incremental methodology using btrfs send/receive
--
__________
Brendan Hide
http://swiftspirit.co.za/
http://www.webafrica.co.za/?AFF1E97
next prev parent reply other threads:[~2014-03-06 21:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 19:27 Understanding btrfs and backups Eric Mesa
2014-03-06 21:17 ` Brendan Hide [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-03-06 20:37 Eric Mesa
2014-03-06 18:18 Eric Mesa
2014-03-06 21:33 ` Duncan
2014-03-07 10:13 ` Wolfgang Mader
2014-03-09 15:46 ` Duncan
2014-03-07 14:03 ` Eric Mesa
2014-03-07 15:14 ` Sander
2014-03-09 4:13 ` Chris Samuel
2014-03-09 15:30 ` Duncan
2014-03-13 8:18 ` Chris Samuel
2014-03-09 16:40 ` Duncan
2014-03-13 17:12 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5318E605.9060802@swiftspirit.co.za \
--to=brendan@swiftspirit.co.za \
--cc=ericsbinaryworld@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox