From: Kai Krakow <hurikhan77@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: backing up a file server with many subvolumes
Date: Sat, 1 Apr 2017 10:21:55 +0200 [thread overview]
Message-ID: <20170401102155.218e8d3b@jupiter.sol.kaishome.de> (raw)
In-Reply-To: f9290eee-b091-b25c-c10a-74ba18b9f6f4@gmail.com
Am Mon, 27 Mar 2017 07:53:17 -0400
schrieb "Austin S. Hemmelgarn" <ahferroin7@gmail.com>:
> > I'd like to try to back up (duplicate) the file server filesystem
> > containing these snapshot subvolumes for each remote machine. The
> > problem is that I don't think I can use send/receive to do this.
> > "Btrfs send" requires "read-only" snapshots, and snapshots are not
> > recursive as yet. I think there are too many subvolumes which
> > change too often to make doing this without recursion practical.
> >
> > Any thoughts would be most appreciated.
> In general, I would tend to agree with everyone else so far if you
> have to keep your current setup. Use rsync with the --inplace option
> to send data to a staging location, then snapshot that staging
> location to do the actual backup.
>
> Now, that said, I could probably give some more specific advice if I
> had a bit more info on how you're actually storing the backups.
> There are three general ways you can do this with BTRFS and
> subvolumes: 1. Send/receive of snapshots from the system being backed
> up. 2. Use some other software to transfer the data into a staging
> location on the backup server, then snapshot that.
> 3. Use some other software to transfer the data, and have it handle
> snapshots instead of using BTRFS, possibly having it create
> subvolumes instead of directories at the top level for each system.
If you decide for (3), I can recommend borgbackup. It allows variable
block size deduplication across all backup sources, tho to fully get
that potential, your backups can only be done serially not in parallel.
Borgbackup cannot access the same repository with two processes in
parallel, and deduplication is only per repository.
Another recommendation for backups is the 3-2-1 rule:
* have at least 3 different copies of your data (that means, your
original data, the backup copy, and another backup copy, separated
in a way they cannot fail for the same reason)
* use at least 2 different media (that also means: don't backup
btrfs to btrfs, and/or use 2 different backup techniques)
* keep at least 1 external copy (maybe rsync to a remote location)
The 3 copy rule can be deployed by using different physical locations,
different device types, different media, and/or different backup
programs. So it's kind of entangled with the 2 and 1 rule.
--
Regards,
Kai
Replies to list-only preferred.
prev parent reply other threads:[~2017-04-01 8:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-26 3:00 backing up a file server with many subvolumes J. Hart
2017-03-26 9:14 ` Roman Mamedov
2017-03-26 19:51 ` Adam Borowski
2017-03-26 20:24 ` Peter Grandi
2017-03-27 5:57 ` Marat Khalili
2017-03-27 12:00 ` J. Hart
2017-03-27 13:05 ` Graham Cobb
2017-04-01 8:24 ` Kai Krakow
2017-03-27 11:53 ` Austin S. Hemmelgarn
2017-04-01 8:21 ` Kai Krakow [this message]
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=20170401102155.218e8d3b@jupiter.sol.kaishome.de \
--to=hurikhan77@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