NightMan
07-23-2002, 06:21 AM
what is the command line for using tar to spliting tar file as 1gb each.
I know multiple volume (-M) to be used, but didn't get that working.
I tried tar -L 100000 -Mcf test.tar /usr
but it is prompt me to continue and if i type 'y' then it continue but make no files. except the first one. what I am doing wrong here?
split -l <lines>
exa,ple to split 100000 lines file on 2 50000 lines:
split -l 50000 100k.txt
man split
NightMan
07-23-2002, 05:54 PM
I do not want to split any txt files. but I am using tar to back up some files. the back up tar is larger than 2GB. Thats the reason I need a tar using mutilple files with size limit.
Any help?
Skeptical
07-24-2002, 05:17 AM
You can pay and get bru. That utility will let you archive files/folders larger than 2GB. You can even split it into chunck if you want to.
http://www.tolisgroup.com/products3.html
NightMan
07-24-2002, 07:42 AM
ok, thank you.
but I am still looking for a tar soultion. I know it is possible, I just dont know how..
Skeptical
07-24-2002, 09:38 AM
Actually the bru utility lets you compress files in much the same way as tar, even using the same syntax. You don't have to back up to tape or use the more advanced features if you don't want to. You can just use it in replacement of tar.
priyadi
09-30-2002, 02:04 PM
Originally posted by NightMan
I do not want to split any txt files. but I am using tar to back up some files. the back up tar is larger than 2GB. Thats the reason I need a tar using mutilple files with size limit.
Any help?
Maybe that 2GB is the filesystem limit, not specific to tar. You simply can't have a file larger than 2 GB on your filesystem.
Another poster is right of using split, except you should do it like this:
tar cfzp - /dir_to_backup | split -b 1024m
That will create splitted tar files with 1 GB each in the current directory, so make sure you cd first to an empty directory.
To restore from that tar file, use something like this:
cat /path/* | tar xfzp -
c3r3br0
10-01-2002, 10:11 AM
You have to use gtar. Its open source.
You might also want to look at ftpbackup, you wont need to create a tarball on your server and then send it to your backup machine, very helpful if you dont have much harddrive space.
matt_01
09-05-2004, 05:16 PM
Originally posted by priyadi
Maybe that 2GB is the filesystem limit, not specific to tar. You simply can't have a file larger than 2 GB on your filesystem.
Another poster is right of using split, except you should do it like this:
tar cfzp - /dir_to_backup | split -b 1024m
That will create splitted tar files with 1 GB each in the current directory, so make sure you cd first to an empty directory.
To restore from that tar file, use something like this:
cat /path/* | tar xfzp -
watch out.. this command will keep your server busy ;-)
a total of 4 GB..loads of 7 for 30min ;-)