1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Software doesn't backup so trying batch file backup

Discussion in 'All Other Software' started by TJ54, Aug 22, 2005.

Thread Status:
Not open for further replies.
  1. TJ54

    TJ54 Thread Starter

    Joined:
    Aug 22, 2005
    Messages:
    35
    I have tried to create a batch file to backup our important data from our program to our server(drive letter Z)on our network and cant seem to get it to work.Could someone look at it and be able to tell me what is wrong with it. We also decided to include backing up our my documents folder too.

    @echo off
    :: variables
    set drive=c:procare.win
    set backupcmd=xcopy /Z

    echo backing up procare data
    echo please wait...
    @pause

    xcopy "Z:\Procare\DB\*.*":\\dataonserver01\users\Jeannie\Procare.win"

    echo Backing up My Documents
    %backupcmd% "userprofile%\My Documents" "%c%\My Documents"

    echo Backup Complete!
    @pause
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    I guess it depends on what you're backing up. I use Beyond Compare to sync files between machines.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/392558

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice