1.

Solve : batch script help for backups?

Answer»

I have a group of windows servers which i backup nightly to a BSD box. I have a single master.bat script which runs several .bat scripts, dumps them to a directory and the master.bat script ftp's them to the BSD server.

I need help writing a single .bat script that will look in a specific directory, backup anything in the directory. This way i can get RID of the several individual .bat scripts. The reason is is because sometime new things are added or taken out of this directory without me knowing and i want to make sure theyre caught.

How i have it now is i tar up the FOLDER i want to backup which creates folder name.tar
i move it to a backup directory
i gzip it so its folder name.tar.gz
then a master.bat script ftp's them to a BSD server.

I want to change it to:

a single .bat script looks in the same directory
creates individual tar files still using the folder names still putting it in a directory
the master.bat FILE still FTPS them

This seems easy but i DONT know batch so any help would be great!



Discussion

No Comment Found