|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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 |
|
|
|
|
|
#2 |
|
Member (14 bit)
Premium Member
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. |
|
|
|
|
|
#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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|