Solved

Backup Data Files

Posted on 2011-09-07
4
224 Views
Last Modified: 2012-05-12
I have a Windows XP Workgroup

Client wishes to copy the following directories from main XP Box to 2nd XP box C:\backup Directory

Backup folder on Box 2 is shared with all Rights.

Wishes to backup not as a backup but using either xcopy of robocopy the following directory Structures.

I am looking for format Usage:

C:\Documents and Settings\User1\Desktop
C:\Documents and Settings\User1\my Documents

How do I write the scripts to do this?

Cjoego
0
Comment
Question by:Joseph Salazar
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Steve earned 500 total points
Comment Utility
You could write a simple batch file that simply uses xcopy..

eg if remote machine is mapped as z:

one the first machine you'd do something like :

xcopy /s c:\documents and settings\user\desktop\*.* z:\whatever folder\
xcopy /s c:\documents and settings\user2\my documents\*.* z:\whatever folder\

save it as a runme.bat or whatever you want to call it then run it.. just make sure you have xcopy in your path, otherwise you'll have to specify its location as well (eg. c:\windows\xcopy /s c:/etc etc..)

0
 
LVL 12

Expert Comment

by:Steve
Comment Utility
once you've verified it works, simply use the windows task scheduler to automagically run it..

To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks.
0
 

Author Comment

by:Joseph Salazar
Comment Utility
When I run the script it get the following error

Invalid Number of Paramaters.

I have tried moving the /s to the end, removing it and eveing making it

just to the q: drive.........Same Error

How would I set up either Robocopy or Xcopy32???

Where can I get a copy of Xcopy32?

cjoego
0
 

Author Closing Comment

by:Joseph Salazar
Comment Utility
put me on the path to resolution:
after much testing I used the following script and switches .
the Mapped Drive is the Z:  Drive:

cd \
cd C:\Documents and Settings\User1\Desktop
xcopy *.* z:\desktop /S /Y
CD \
CD C:\Documents and Settings\User1\my Documents
xcopy *.* z:\DOCS /S /Y
CD\
exit
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now