Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Ghost on September 05, 2002, 08:07:15 PM

Title: Anyone Know how??????
Post by: Ghost 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
Title: Re: Anyone Know how??????
Post by: Nathan Fowler 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".
Title: Re: Anyone Know how??????
Post by: ghost 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
Title: Re: Anyone Know how??????
Post by: Jaco Bongers 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
Title: Re: Anyone Know how??????
Post by: ghost on September 05, 2002, 10:43:51 PM
will check out!

thanks Jaco

Ghost
Title: Re: Anyone Know how??????
Post by: Nathan Fowler 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.
Title: Re: Anyone Know how??????
Post by: ghost 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