tar as a file system backup

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Tue Feb 7 16:26:39 UTC 2012


You might want to exclude /dev, /sys, /mnt/, ... :-)
-- 

William



----- Original Message -----
> From: William Muriithi <william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>
> To: TLUG mailing list <tlug-lxSQFCZeNF4 at public.gmane.org>
> Cc: 
> Sent: Tuesday, February 7, 2012 11:14:06 AM
> Subject: [TLUG]: tar as a file system backup
> 
> Morning pals
> 
> I am planning to repurpose a server and I am kind of hesitant of
> reformatting it as I am not very certain if I got everything backup.
> 
> How  safe is it to assume this command has compressed and archived
> everything on the old system?
> 
> tar -zcvpf /backup/servername-`date '+%d-%B-%Y'`.tar.gz  /
> --exclude=/backup --exclude=proc
> 
> Just may feel a little more confident if I get a second eye saying all
> seem fine as long as tar exit with 0 flag
> 
> William
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
> 
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list