Question about Backing up with tar

Patrick O'Callaghan pocallaghan at gmail.com
Thu Dec 10 11:40:43 UTC 2009


On Thu, 2009-12-10 at 11:05 +0000, Andrew Haley wrote:
> kevin wrote:
> > I would like to know if this will work with fc9:
> > 
> > # sudo su
> > # cd /
> > # tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found 
> > --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
> > 
> > 
> > 
> > What I really want to know is this. I have two systems that are 
> > identical and would like to just copy one to the other and keep all 
> > permissions for each of the files and folders copied. Is this feasible 
> > or could someone point me to the right direction with some kind of tutorial?
> 
> tar isn't going to do it: tar can't cope with files that have holes, for one
> thing.  You have to be careful with mount points too.

Not to mention that the the tgz file is on the same filesystem that's
being backed up, which is likely to lead to grief.

poc




More information about the fedora-list mailing list