Re: tech13 - Batch file for backups


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by GA on October 24, 2013 at 12:21:28:

In Reply to: tech13 - Batch file for backups posted by GL on October 21, 2013 at 19:52:54:

: This may be a simple problem for you experts, but can you give me a basic DOS batch file to create selective computer backups? I want to back up only selected subdirectories.

I'm not sure what you are looking for, but in Dr. Murdock's book "DOS the Easy Way" there is an example batch file for backups that backs up files created after a certain date. You can enter the name of the desired subdirectory on the C drive. Maybe somebody else can tell you how to do that interactively. Here is his example batch file for backups using the XCOPY command:

echo off
if %1x==x goto MESSAGE
goto START
:MESSAGE
echo No parameter entered
echo Enter a date (backup files created after this date)
echo Use the format mm-dd-yy
echo Terminating program
goto END
:START
echo Ready to back up to flash drive F all files on the hard disk that were created or altered on or after the following date: [ %1 ]
echo Press any key to continue or press Ctrl + C to cancel
pause
xcopy c:*.* /s /d:%1 F:
:END



Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]