Tar at lower compression density
hi,
I'm looking to TAR at lower compression because I'm trying to save time and load resources over disk space. I want to tar a big directory in ONE portable file. Maybe you have a better option to propose? I read man tar and they specify density, but it does not work (or I don't understand how to use it). man tar clearly state: -[0-7][lmh] specify drive and density I'm using tar (GNU tar) 1.15.1 Here are the commands I tried: tar -c0 dir/destination.tar /dir/source/ root@server [~]# tar -c0 dir/destination.tar /dir/source/ tar: Options `-[0-7][lmh]' not supported by *this* tar thanks for the help! |
see http://en.wikipedia.org/wiki/Tar_(file_format)
a "tar" ball is uncompressed ( just blank spaces removed ) i think you want to use a .bz2 or tar.gz (.tgz) or for code use .7z ( it works in *nix) |
Currently, I am using rsync to make my local backup, which I LOVE, but the thing is that it stays a directory and not a file, hence it is managed by cpanel as disk space used by the user.
I want to exclude this content from the cpanel disk usage count by making it into a single file and chown it down to root:root. But chown recursive will break my stuff upon restore. So all I'm looking for is a wrapper to make my directory look like a single file... I have NO CARE for compression here. This is why I am looking for the QUICKEST way to make a directory into a file. thanks for your insight! |
then why did you state
Quote:
|
Quote:
But on to your question...the "quickest" way to make a directory into a file is to tar it...but the directory will still exist along with the tar file...you can delete it if you with... Code:
tar -cf dirname.tar dirname |
great thanks!
so I'd love to drop rsync and tar directly then. But can tar do like rsync? Meaning just update the file that changed? thanks again! ps:John; I wanted lower compression just to make things quicker - but no need now since it does not compress. :-)) |
Quote:
Example: Code:
tar -cf - dirname | rsh hostname dd of=dirname.tar bs=20b |
I created my tar file like this:
# tar -cjf /home2/backup_dir.tar /home/dir/ and now trying to update my tar file like this: # tar -u /home2/backup_dir.tar /home/dir/ and I get this error: # tar: Options `-Aru' are incompatible with `-f -' any further help? thanks again! |
Quote:
Code:
tar -uf /home2/backup_dir.tar /home/dir/ |
All times are GMT -5. The time now is 08:02 AM. |