Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Mar 2003
    Location
    Hershey, Pennsylvania, USA
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating a batch file to automate backups

    Can I somehow create a batch file for my users that will back up 3 folders/files -- "My Documents", "Cata", and the "names.nsf" file (which contains their Lotus Notes addresses)?

    Some of my users back up to a cd -- some back up to the network. Some are LAN, some are WAN, some are remote.

    Some are Windows 2000, some are Windows XP.

    Thank you in advance!
    Peggy

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Creating a batch file to automate backups

    Hi Peggy

    There are probably lots of solutions to this, but you might want to look at the summary features of the <img src=/S/free.gif border=0 alt=free width=30 height=15> XXCOPY program. It's like a DOS XCOPY on steroids and has a lot of commandline switches geared towards backup, mirroring, cloning etc. I've used for backup to various locations (Folder, drive, CD etc.) with no problems. I'm not sure how it goes on XP or 2000 though.

    Alan

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Creating a batch file to automate backups

    Peggy

    I think you have rather too many variables for a single BATch file - it's almost like you will need a different version for each user, with only the three directories/files to be copied being common!

    The other snag is that I don't know of a CD-writing program which will work from a command line and take parameters for the data to be written to the CD. In my experience, it's all gooey...

    Providing you can define a generic target path for the users who "back up to the network", and say where the NAMES.NSF file actually lives, it's a very short BATch file to do that aspect!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    Lounger
    Join Date
    Mar 2003
    Location
    Hershey, Pennsylvania, USA
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Creating a batch file to automate backups

    Solution! Yippee!!

    We do have separate batch files -- they have to choose which DRIVE they back up to -- but once they've done that, it just GOES!

    Thanks for your suggestions! Peggy

    Here's what my clever colleagues came up with --

    del c:backutiltest.bks
    cmd /u /c echo cocuments and Settings%username%my documents >c:backutiltest1.bks
    cmd /u /c echo c:data >c:backutiltest2.bks
    cmd /u /c echo c:lotusnotesdatanames.nsf >c:backutiltest3.bks

    copy c:backutiltest1.bks + c:backutiltest2.bks + c:backutiltest3.bks c:backutiltest.bks



    ntbackup backup "@C:backutiltest.bks" /j "My Backup Job " /f n:backup.bkf

    cls
    echo Backup complete
    pause

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •