Click to See Complete Forum and Search --> : DVD Burning Script


Vectorman
02-17-2006, 02:21 PM
I need to back up the videos that I have ripped to DVD disks. I would rather not go through the directory and seperate all the files into Disk 01 Disk 02 Disk 03 etc...

I wouldl ike a script that will search through a directory and make symlinks in another directory (this part I can do) unfortunatly I would like the script to change to a Different Directory after it reaches 4.3GB of total file size

IE Search /home/joel/movies

create symlinks in /home/joel/disk01 until this directory contains 4.3gb of files. then create symlinks in /home/joel/disk02 until that directory contains 4.3 gb of files, etc. until it finds no more files.

Is this possible or am I wasting my time by asking.


joel

JayMan8081
02-17-2006, 03:32 PM
Maybe use the du command somewhere in the shell script to check the size of the directory. Maybe checkout the man page but I think you can do du -sh dirName to get the size of a directory in human readable format.