[Top] [All Lists]

Re: best way to duplicate hard drive for backup

To: "prad@xxxxxxxxxxxxxxxxxx" <prad@xxxxxxxxxxxxxxxxxx>
Subject: Re: best way to duplicate hard drive for backup
From: "Assarsson, Emil" <Emil.Assarsson@xxxxxxxxxxxxxxxx>
Date: Mon, 17 Oct 2011 10:12:33 +0200
Accept-language: en-US, sv-SE
Acceptlanguage: en-US, sv-SE
Cc: "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <871uuciiud.fsf@xxxxxxxxxxx>
References: <871uuciiud.fsf@xxxxxxxxxxx>
Thread-index: AcyMpIXlyC+z3ryAQz2iYDvnfCunPQ==
Thread-topic: best way to duplicate hard drive for backup
sön 2011-10-16 klockan 17:04 -0700 skrev prad:
> 1. is my plan an intelligent one?
> 2. if so, what is the most sensible way of duplicating the first hd?
> a) dd?
> b) install from scratch and then overwrite with xfs dumps from
> external?
> c) something else entirely?
a) "dd" requires that the filesystem is offline. It duplicates
everything on the disk, even all the random stuff on the disk that
aren't files.
b) If you have a proper backup schedule this will allow to restore a
older system if something broke a few days ago. Please note
that /etc/fstab often contains references to the UUID of the file
system. You also need to make sure that the bootloader is updated.
c) You can have a working and tested standby and then restore from
xfsdump when you need to. You can set "no backup" file system attribute
on files and directories that isn't needed to backup.

<Prev in Thread] Current Thread [Next in Thread>