Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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.
Distribution: Fedora 11, CentOS 5.3, Linux Mint 5, Solaris 10
Posts: 1,260
Thanked: 35
Quote:
Originally Posted by thierry8p
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!
As stated before...Tar dosen't compress...
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.