TechSpot

Backup Batch files

By corrie206
Feb 2, 2005
Topic Status:
Not open for further replies.
  1. Hi everyone!
    At my work we have about 11-15 workstations and a single Xeon 2.8Ghz processor, 4 x 80Gb (7200rpm) Seagate harddrives with 1GB RAM, on which our medical software runs, what needs to be backed up is the different data folders, and a USER folder where the second batch file which runs on the clients copy the My Documents, email, well you can see from Batch2 the whole Documents And Settings folder. Both are scheduled, Batch1 on server and Batch2 on clients (took me a week to figure out the starting times!) Anyway, long story short, I am putting this here, maybe someone can use it, or comment on it. Thanks to Mark Russinovich and people at Sysinternals.com for the little program PSKILL to close the OUTLOOK.
    Here we go...
    -------------------------------------
    BATCH1
    -------------------------------------
    @ REM Runs on the server, winRAR the data folders, and copies it to a DVD
    @echo off
    x:
    cd\backup
    del *.old
    ren *.rar *.old
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\compiles.rar x:\compiles\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\goodx1.rar x:\gxmn\goodx1\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\goodx2.rar x:\gxmn\goodx2\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\goodx3.rar x:\gxmn\goodx3\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\liveedi.rar x:\liveedi\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\goodxin.rar x:\goodxin\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\goodxrep.rar x:\goodxrep\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\medprax.rar x:\medprax\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\pathway.rar x:\pathway\*.*
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\edi.rar x:\EDI\*.*

    cd\users
    REM Because there is many *.TMP files on the clients and DrWatson DMP files they get deleted here

    attrib -r -h -s +a /s
    del *.tmp /s/q
    del *.dmp /s/q
    c:\progra~1\winrar\winrar a -r -ag+DD-MM-YY -ibck -hm2 -m5 -os -dh x:\backup\userdocs.rar x:\users\*.*

    cd\backup
    xcopy *.rar D:\*.* /Y

    exit
    -------------------------------------

    BATCH2
    -------------------------------------
    REM This runs on my clients, and backups to the server under /USER/NAME
    c:
    x:\software\pskill.exe OUTLOOK.EXE
    cd\documents and settings\
    xcopy *.* x:\users\NAME\*.* /C/S/R/H/Y
    cd\print
    del *.* /s/q
    cd\temp
    del *.* /s/q
    exit
    -------------------------------------

    Please feel free to comment, these batch files are works in progress, and willing to hear some ideas.
    Thanks!

    :grinthumb
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.