Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-08-2006, 09:36 AM   #1
Member (10 bit)
 
Join Date: Jun 2000
Location: Dorset UK
Posts: 559
backup Batch file

Hi all

i am currently having problems trying to find a simple way to allow users to run a batch file from the desktop to copy data from a common directory to CDRW for weekly backups. If the size of the folder does not go over the limit then there is no problem as the batch file will work ok. My problem is that at some of the sites i visit the common directory can be just under a Gig and the batch files won't work (no DVD drive). is there a way to have a batch file span over two disks?

batch file
@echo.
@echo Insert a blank CD and hit any key to continue
@echo.
@pause
@echo.
xcopy D:\Common e:\Common /e /i /y
xcopy D:\Users e:\Users /e /i /y
@echo.
@echo Press Ctrl-C to terminate this backup job
@pause


Doug
DougL is offline   Reply With Quote
Old 04-08-2006, 10:10 AM   #2
Member (14 bit)
Premium Member
 
TwoRails's Avatar
 
Join Date: Jan 2002
Location: The Great NorthWest
Posts: 12,594
Looks pretty much like my batch file except I use the following switches:

xcopy f:\database\*.* o:\database\*.* /m /s /e /h

and when the disk is full but not all files are copied, I can just insert the new disk and run the batch file again. The "/m" switch will copy only files with the archive bit set so 1) only altered files will be copied, and it gets reset by xcopy so 2) only files not copied to the prior disc(s) will be copied to the next disc.
TwoRails is offline   Reply With Quote
Old 04-08-2006, 12:20 PM   #3
Member (10 bit)
 
Join Date: Jun 2000
Location: Dorset UK
Posts: 559
Thanks TwoRails

That sounds good to me, I will give it a try.

Doug
DougL is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:55 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2