Howto move a 13GB filesystem on80GB into a 20GB
John Van Ostrand
john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
Fri May 12 17:45:24 UTC 2006
On Fri, 2006-05-12 at 13:27 -0400, Robert Brockway wrote:
> For tar it is worth using -X. Eg:
>
> tar -X /tmp/exclude.file -cf alldata.tar /
>
> /tmp/exclude.file should include, as a minimum:
>
> /cdrom
> /floppy
> /mnt
> /proc
> /tmp
> /var/tmp
I always recommend that you use the -l (dash ell) a.k.a.
--one-file-system. Then specify all the file systems that you want
backed up on the command line. This is usually simpler than exclusions.
I use exclusions to remove big files or dirs that I want to get rid of.
e.g.
tar -clf alldata.tar / /usr /var /home
Like Rob said pipes are great:
tar -clf - / /usr /var /home /tmp | ssh root-evScllzyGZOxBppYLAEN5wC/G2K4zDHf at public.gmane.org "tar -xvf
-"
--
John Van Ostrand
Net Direct Inc.
Chief Technology Officer
564 Weber St. N. Unit 12
Waterloo, ON N2L 5C6
map
john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
Ph: 519-883-1172
ext.5102
Linux Solutions / IBM
Hardware
Fx: 519-883-8533
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20060512/fdfdeb86/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gtalug.org/pipermail/legacy/attachments/20060512/fdfdeb86/attachment.sig>
More information about the Legacy
mailing list