So you have a file called ccsfms_20091106_143508.bak and a file called ccsfms_20091106_143508.zip? Mmm... not actually thought of this scenario as it shouldn't happen automatically, I assume someone has uncompressed the file from the zip. I'll have a think how I can deal with this and make new release. Thanks for the feedback.
Not quite....
There is a file called ccsfms_20091106_143508.bak and when I run your script, a file called ccsfms_20091106_143508.zip is created, and straight after its creation, the ccsfms_20091106_143508.bak file is deleted without being added to the zip file. I assume you script makes the zip file and is ment to add the bak filew to it, then delete the bak file once completed?
I'll download your updated version and give it another go.
If .bak exists and a same named .zip exists, it'll search inside the zip for the same file, if it has the .bak already, it'll just delete the .bak. Otherwise it'll .zip it. (For example, you extract the .bak file and forget to clean up afterwards)
I've added the source code as well
Thanks for this! Just to let you know, no problems opening it here in WinRAR.
There is a file called ccsfms_20091106_143508.bak and when I run your script, a file called ccsfms_20091106_143508.zip is created, and straight after its creation, the ccsfms_20091106_143508.bak file is deleted without being added to the zip file. I assume you script makes the zip file and is ment to add the bak filew to it, then delete the bak file once completed?
I'll download your updated version and give it another go.
Hay Matt40k. Just to let you know this seems to be working perfectly now! The date/time feature is a nice little addition and this will defiantly help towards the headaches caused by low disk space because of uncompressed backups!
Glad it's gone, backups now take seconds not hours. Compression can be done later when the system is not use.
I'm running two SIMS servers at the moment since I'm just about to roll out the new one system wide but my backups on the old server take over 25 mins to complete and on the new server they take 17 seconds.