Koozali.org: home of the SME Server

Anyone Know how??????

Ghost

Anyone Know how??????
« on: September 05, 2002, 08:07:15 PM »
Hi

Can anyone help me im looking to doing this on my sme server please see below

i want to run a script or command line to find 4GB's of files and put them to one side if im searching a 18GB directory and then another 4GB until it cant find any more

I want to do this for backup purposes so if any you guys can help that would be fantastic

Thanks again

Ghost

Nathan Fowler

Re: Anyone Know how??????
« Reply #1 on: September 05, 2002, 09:12:56 PM »
Are you talking about create multiple archives, each 4GB to avoid the file system limitation?  I believe the technical term is called "Spanning".

ghost

Re: Anyone Know how??????
« Reply #2 on: September 05, 2002, 10:07:24 PM »
i think so yes what it is im using tar to create the files and all together it comes to 18GB's but i want to spilt the files after taring them into 4GB's files

Would i use perl or find or both

Thanks for any help at all

ghost

Jaco Bongers

Re: Anyone Know how??????
« Reply #3 on: September 05, 2002, 10:37:11 PM »
Don't know if this is what you are looking for:

http://ww.caw.co.za/phorum/read.php?f=1&i=23&t=23

It shows how to use tar to span to multiple files

Jaco

ghost wrote:
>
> i think so yes what it is im using tar to create the files
> and all together it comes to 18GB's but i want to spilt the
> files after taring them into 4GB's files
>
> Would i use perl or find or both
>
> Thanks for any help at all
>
> ghost

ghost

Re: Anyone Know how??????
« Reply #4 on: September 05, 2002, 10:43:51 PM »
will check out!

thanks Jaco

Ghost

Nathan Fowler

Re: Anyone Know how??????
« Reply #5 on: September 05, 2002, 10:50:06 PM »
Keep in mind you can use tar to create archives of a specified size.  Check out the -L flag.

Or you could create a single tarball and use the "split" command to divide that tarball.

ghost

Re: Anyone Know how??????
« Reply #6 on: September 05, 2002, 10:53:10 PM »
will check nathan thanks for your time on this will get back if stuck

thanks again guys

Ghost