I am currently using the latest Ubuntu Jaunty V9 and I have to say I love it! Down with Doze! lol
I am currently trying to write a backup script in bash which does the following:
1) Takes a load of files and creates a tar file
2) Splits the tar file into 1.0GB Chunks and stores them in another directory.
3) Arranges the split files into numbered directories where the file size does not exceed the total capacity of a DVD5, i.e 4.3gig.
4) Create ISOs from the numbered directories and then burn them to discs in a loop.
I have figured out how to do steps 1, 2, 4, but i'm stumped on no.3.
What it would need to do is say if we had 7gig worth of data, this would equate to 7 1gig files, the first 4 would need to go into a directory like /backup/1/ and the other 3 would need to go into a directory like /backup/2/
I would need it to be relative to the amount of data being backed up, as say 26gig would be 26 1gig files so this would be 6.5 discs, so 7 discs would be needed. How could I do this within a bash script?
Can anyone help me out with this? Any help would be appreciated. Once I have the complete backup script working I am prepared to share it so others could use it!
Thanks In Advance,