Computing.Net > Forums > Programming > Backup Only Modified or New Files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Backup Only Modified or New Files

Reply to Message Icon

Name: howecc
Date: October 17, 2009 at 13:50:46 Pacific
OS: Windows Server 2008
Subcategory: Batch
Comment:

A simple batch file that scans a drive and copies all new and modified files (within the last 60 minutes) to a destination folder. Within the destination folder, the batch file creates a new folder named with the date and time the backup is run (formatted as: 2008-10-15 06-10 0 the last part is military time with hour and minute).

I will set my Windows Scheduler to run this backup batch file each hour. The goal is to backup any new file I create or modify to a new location each hour.

I do NOT want to use incremental backup programs. These copy ALL file to a new location and compare modified dates.

Many thanks. I hope for a batch file or software solution for my problem.



Sponsored Link
Ads by Google

Response Number 1
Name: TechnoGeek
Date: October 17, 2009 at 15:08:04 Pacific
Reply:

sounds like you want xcopy. check the parameters with xcopy
/? from a command prompt, /d check against date, if no date is
given, then time.

(\__/) this is bunny
(='.'=) copy bunny into all your signatures
(")_(") to help him gain world domination!


0

Response Number 2
Name: howecc
Date: October 17, 2009 at 15:10:24 Pacific
Reply:

Do you have a sample script?


0

Response Number 3
Name: Mechanix2Go
Date: October 17, 2009 at 22:20:24 Pacific
Reply:

xcopy src dest\ /s/d/y/c/v/r


=====================================
Helping others achieve escape felicity

M2


0

Response Number 4
Name: howecc
Date: October 18, 2009 at 10:01:27 Pacific
Reply:

Perfect. Thank you!


0

Response Number 5
Name: tvc
Date: October 23, 2009 at 09:24:26 Pacific
Reply:

Check out XXCOPY and RoboCopy for even more options


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Backup Only Modified or New Files

Win2k batch: copy only new files? www.computing.net/answers/programming/win2k-batch-copy-only-new-files/10386.html

batch to check last modified file www.computing.net/answers/programming/batch-to-check-last-modified-file/16351.html

batch file to change prices in ini www.computing.net/answers/programming/batch-file-to-change-prices-in-ini/17482.html