Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch script help for backups  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

investmentbnker75

    Topic Starter


    Newbie

    batch script help for backups
    « on: November 08, 2008, 10:02:11 AM »
    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!