From: Roman Mamedov <rm@romanrm.net>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Questions on incremental backups
Date: Fri, 18 Jul 2014 19:05:24 +0600 [thread overview]
Message-ID: <20140718190524.143439e1@natsu> (raw)
In-Reply-To: <20140718053422.78784982@ws>
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]
On Fri, 18 Jul 2014 05:34:22 -0700
Duncan <1i5t5.duncan@cox.net> wrote:
> Effectively, admins can choose NOCOW XOR frequent-snapshotting, altho
> the fact that snapshots stop at subvolume borders can be used as a
> partial workaround, by putting NOCOW files on a dedicated partition and
> not snapshotting it, exactly as I mentioned.
You can't backup running VM images and datafiles of an active database using
"traditional" backup techniques such as file copy or rsync. The tail of a file
you're copying for a backup will be long-inconsistent with the overall state
or the head of the file when you started copying. Snapshots on the other hand
are atomic, and can very much be used to create a static copy of the files for
the purposes of compressing/copying away somewhere. And at worst, the
"restored from backup" state of such a backed up VM or DB will be equivalent
to it just having had a power-loss. Journalling FSes and databases can deal
with that with no major problems.
So just exercise moderation, snapshot e.g. once an hour or even a day, the
result will still be better than not using NOCOW, and will deliver most of the
benefits you get by snapshotting.
Another option is to snapshot->backup->delete snapshot.
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2014-07-18 13:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 20:12 Questions on incremental backups Sam Bull
2014-07-18 4:35 ` Russell Coker
2014-07-18 7:36 ` Bob Williams
2014-07-18 10:45 ` Duncan
2014-07-18 10:55 ` Roman Mamedov
[not found] ` <TmvW1o01t4NXQGV01mvYsU>
2014-07-18 12:34 ` Duncan
2014-07-18 13:05 ` Roman Mamedov [this message]
2014-07-18 14:28 ` Imran Geriskovan
2014-07-18 12:56 ` Sam Bull
2014-07-18 13:40 ` Russell Coker
2014-07-18 14:27 ` Mike Hartman
2014-07-20 16:56 ` Sam Bull
2014-07-18 17:31 ` Daniel Mizyrycki
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=20140718190524.143439e1@natsu \
--to=rm@romanrm.net \
--cc=1i5t5.duncan@cox.net \
--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;
as well as URLs for NNTP newsgroup(s).