Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overwrite 1

Status
Not open for further replies.

jbl4me

MIS
Aug 19, 2003
67
US
I am setting up a backup server on a linux box. It will provide 40+ GB of space for a Windows crap server to dump its contents to at night. How can I stop the overwrite box from appearing?? I want have the files automaticly overwrite.

Thanks
Will
 
You can do a XCOPY with the /Y switch.

Hope This Help
PH.
 
You can also use rsync, which is nice because it only copies files that have changed, so you don't have to dump the entire contents of the server every night. But the above post is right, use xcopy.

My personal preference when using xcopy is to delete the directory structure, recreate it, and then do your xcopy. So create a batch file with something like this...

Say L: is your linux share, G: is your data on your windows server, and your are doing Monday's backup (note I use rmdir, if you are using 98 it would be delree of course)

L:
cdrmdir /s /q l:\backup\monday
md l:\backup\monday
cd l:\backup\monday
xcopy /e g:

Now just create four more (one for each day of the week, and substitute the monday with tuesday in each line of the script that I put), and schedule them in Windows. Bingo, you have 5 backups a week, and each one created fresh nightly.

I'd do this until you have time to play with rsync. I prefer to have the Linux box controlling the backups, so you can ssh in from home and check on the backups anytime.

Here's a good page to readup on rsync, but I'd grab a book.


Matt J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top