my newest challenge for you....
I have looked through cpdir found at http://www.shelldorado.com/scripts/cmds/cpiodir.txt
and i see where the files are actualy copied, line 87
cpio $CpioOpt "$targetdir"
Is there a way to make this script tar.gz the files it copies,
then delete the source files if wanted ? I guess instead of
copy move into archive....
I could just tar.gz the enitre folder, but the logs are too many and too large,
it would create one big blob, when the seperate tar.gz files are quicker
and lighter to manipulate
I think i should change it to something like,
tar cuzf "$CpioOpt".tar.gz -C "$targetdir"
but the syntax is probably far from correct.
Thats the first hurdle,
next would be to delete the source files, if everything was ok.
Thanks in advance !