Thread: Auto backup
View Single Post
  #2   (View Single Post)  
Old 7th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

tar doesn't compress files, it just archives them.

For compressiong, use an application such as gzip(1), bzip2(1), or p7zip(1).

gzip and bzip2 read from the standard input, not sure about p7zip.

# dump -0auf- -L /usr | gzip > /mnt/usb/usr.ad0s1f.dump.gz
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote