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: signature.asc
Description: OpenPGP digital signature

Reply via email to