Batch Script for backup

2

I need a batch script that will zip up all files in a particular directory and save it to another directory in a YYYY/MM/DD-HH/MM/SS format.

I've seen things similar but not sure about this.

Thanks!

Questioneer

Posted 2012-07-20T15:48:23.413

Reputation: 121

Answers

0

As I remember the date facilities in a batch script are tricky and limited. I made an antivirus updater script for a BartPE disk a while back and it took me quite a while to get it to be able to determine if the last update was older then a month. you may need to have the archive program input the full date/time for the file name. I am pretty sure that some of the utilitys out there will have that ability you may have to use a different program or type of archive though. If you use something like VB to do the backup it will be easier to set the date up and is not to hard to figure out for that type of a task.

also another thing to think about is if files will be locked due to use when you run the backup.

I will post the code i used in batch monday when I can look at it at work.

Kendrick

Posted 2012-07-20T15:48:23.413

Reputation: 559