From: Florian Philipp <lists@f_philipp.fastmail.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] backup to a cold-swap drive
Date: Wed, 28 Apr 2010 17:31:41 +0200 [thread overview]
Message-ID: <4BD854DD.7040004@f_philipp.fastmail.net> (raw)
In-Reply-To: <1272418910.30160.4057.camel@localhost>
[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]
Am 28.04.2010 03:41, schrieb Iain Buchanan:
> Hi,
>
> A winblows colleague said he uses a utility to backup his internal hard
> drive to an external disk, such that if his internal disk fails he can
> replace it with the external disk and continue straight away.
>
> Since I go to weird locations with unreliable power and sometimes drop
> my laptop I thought it should be simple to do the same in Linux. I have
> an external disk the same size, but now what?
>
> * I want to copy changes intelligently (ie. no dd, gparted, or
> Ghost4Linux).
> * I want to copy a specific device only (no usb keys, etc) to a
> specific external device.
> * Windows partitions can be ignored.
> * It doesn't matter if the copy is not unmounted properly, eg. if
> power is shut of without shutting down.
> * The external disk must be able to be absent
>
> Can md use one internal and one external disk in a RAID 1 setup, with
> the external disk not always there? Any other suggestions?
>
> thanks :)
md would be extremely slow because it has to rebuild/resync the complete
array.
I suggest you manually recreate the partitioning scheme, install grub,
then mount it with some little script and call some backup tool to do
the actual copying.
If you can live with just one big partition as a backup (probably with
separate /boot), you should replace fstab and grub.conf on the backup
medium and blacklist them from the files which you want to back up.
Concerning the backup tool, I would use `rsync --delete` plus all
relevant switches for permissions, times, acls, etc. If you use another
tool, just make sure it doesn't put some metadata onto the backup medium
and that it can delete files which no longer exist on the original medium.
With regard to your requirement to just 'pull the cord' without
umounting it: Better mount it with '-o sync' to increase your chance
that everything works fine afterwards. But in reality, nothing can
really protect you from filesystem corruption in this situation. If you
can afford, better keep two backup media which you round-robin.
Hope this helps,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2010-04-28 15:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 1:41 [gentoo-user] backup to a cold-swap drive Iain Buchanan
2010-04-28 15:31 ` Florian Philipp [this message]
2010-04-29 0:38 ` Iain Buchanan
2010-04-30 14:24 ` Florian Philipp
2010-05-03 12:44 ` Iain Buchanan
2010-04-28 21:16 ` Frank Steinmetzger
2010-04-29 0:41 ` Iain Buchanan
2010-04-29 3:38 ` Iain Buchanan
2010-04-29 14:44 ` Alex Schuster
2010-05-03 12:13 ` Iain Buchanan
2010-05-04 13:11 ` Alex Schuster
2010-05-07 18:23 ` snackup (was: Re: [gentoo-user] backup to a cold-swap drive) Alex Schuster
2010-05-07 19:08 ` covici
2010-05-07 19:35 ` [gentoo-user] Re: snackup Alex Schuster
2010-05-07 19:55 ` covici
2010-05-11 10:02 ` Alex Schuster
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=4BD854DD.7040004@f_philipp.fastmail.net \
--to=lists@f_philipp.fastmail.net \
--cc=gentoo-user@lists.gentoo.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