Rich Freeman on 27 Apr 2016 02:23:24 -0700
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] disk image one-liner
|
- From: Rich Freeman <r-plug@thefreemanclan.net>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] disk image one-liner
- Date: Wed, 27 Apr 2016 05:23:19 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=r4UoF6AwHbd6yUlbMxeS09WdtLVEwVTrZjfboIL8QLo=; b=P0aPnGyAimPTla1UurS1s3A0aQGowaeqZQ9/K5o3A2eLijdFNB2HJKs9B+ZMVUXK72 7eINh5O2HyjF9AlG1J5aYCSfFSyHE9ga9ZpXWovwmR5+c6t1DGzRGWbRoeJ5jKpK3iTO QzocK7E6zzB5hE7GIYlZz0S9/vXg+CChcj5n/m8j3R9/gbYGSm2U2ZG7IonrggKlvMCj GlDAoUYcusahzyb8dOrqgqtweJDfNn95MqnNT2cK03/ArTZbNnxjEuEvcva1UJXeEKBp a38e84bz/8xE7GDbbG4xSfHJUvJ+5aFIg4W5dFeHk1biXHZ7Na+8ILVbDrQ6RuS8MhVL ccNw==
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
On Wed, Apr 27, 2016 at 12:13 AM, JP Vossen <jp@jpsdomain.org> wrote:
> Ahhh, so XFS only. Very cool though, thanks.
>
I don't think xfsdump is atomic. Some filesystems support atomic
dumps, and some don't. Any filesystem that journals has the potential
to support it. (To do an atomic dump the filesystem would start
jounaling all data once the dump starts and not delete the journal
entries until the dump is complete, so that the original state of the
filesystem isn't lost until the dump is over.)
btrfs send only works on a snapshot, so it is always atomic. I
imagine that the zfs equivalent works similarly, and both should work
online.
If you're looking for an fs-agnostic archiver there is fsarchive,
which I suspect uses tools like xfsdump/etc underneath. It will also
resize filesystems on the fly during restore.
There is also partimage which is the main engine behind clonezilla.
It uses a somewhat unique approach in that the only filesystem-aware
logic it has is determining which blocks are used/free. It then does a
block-level save of all the used blocks. That means it won't do
things like resizing, and the destination device has to be at least as
large as the source since it won't consolidate the used space when the
image is restored. For the more exotic filesystems that it supports
which are otherwise not welll-supported on linux it is probably the
safest option short of dd since it tries to faithfully make the copy
identical to the source, minus blocks it thinks weren't used. Of
course, dd would be the safest option since it makes no assumptions at
all.
In general though, most unix-y filesystems tend to have some kind of
dump program which is intended to be used for backups. For ext2/3/4
the program is typically just called "dump" and it actually uses those
two numbers at the end of your fstab that nobody understands.
--
Rich
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
- References:
- [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: "Paul L. Snyder" <plsnyder@drexel.edu>
- Re: [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: "Keith C. Perry" <kperry@daotechnologies.com>
- Re: [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: Rich Freeman <r-plug@thefreemanclan.net>
- Re: [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: "Keith C. Perry" <kperry@daotechnologies.com>
- Re: [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: Rich Freeman <r-plug@thefreemanclan.net>
- Re: [PLUG] [plug-announce] TOMORROW - Tue, Apr 19, 2016: PLUG North - "Linux Containers" by Jason Plum and Rich Freeman (*6:30 pm* at CoreDial in Blue Bell)
- From: "Keith C. Perry" <kperry@daotechnologies.com>
- [PLUG] disk image one-liner
- From: JP Vossen <jp@jpsdomain.org>
- Re: [PLUG] disk image one-liner
- From: "Keith C. Perry" <kperry@daotechnologies.com>
- Re: [PLUG] disk image one-liner
- From: JP Vossen <jp@jpsdomain.org>