ManagerJay
IS-IT--Management
I'm sure this is something simple I am missing, but I am not seeing it.
Basically, I need to write a script to create compressed archives, so users can save files to CDs, of approximately 700 MB when compressed.
My idea is, once I have a list of the files to backup, compress each file as it is added to the archive, and then check the total space. When the size is approximately 700 MB, create the next archive file.
Everything was going great, until I tried to compress a file and then send it to tar.
I used, bzip2 -c filename > tar -cvf archive.tar - , and several other variations with no luck. Any suggestions would be greatly appreciated.
Thanks,
Jay
Basically, I need to write a script to create compressed archives, so users can save files to CDs, of approximately 700 MB when compressed.
My idea is, once I have a list of the files to backup, compress each file as it is added to the archive, and then check the total space. When the size is approximately 700 MB, create the next archive file.
Everything was going great, until I tried to compress a file and then send it to tar.
I used, bzip2 -c filename > tar -cvf archive.tar - , and several other variations with no luck. Any suggestions would be greatly appreciated.
Thanks,
Jay