Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Dropbox folder which is shared by couple of users. I would like to make a backup of this folder that will occur every week and store this backup on another hard drive.

I can simply copy the entire folder each time and this will be the backup, but I would like to copy only the files that have been changed or created during that week.

I thought of creating a batch script that will check each file in the Dropbox folder recursively and see its modified date. If that date is later then a given one (current backup date) it will copy the file to a folder named BackUP[Date].

Do you think this solution is OK?

share|improve this question
up vote 0 down vote accepted

The simple xcopy does the trick:

echo off
if exist "C:\Backup" goto GO
goto ERR

xcopy "C:\Cypress\*.*" "C:\Backup\*.*" /m/e/y
echo ** Copy complete! **

echo ** ERROR - files cannot be copied! **
share|improve this answer

I recommend using Microsoft's free SyncToy utility to do this. Its documentation describes how to run it from the command-line, which means it can be can be started from a batch script to run all or specific "jobs". There's also instructions for setting it up as a scheduled task that will run it automatically at set times every day, week, month, etc. A log file is produced which can be consulted to verify its processing and help trouble-shoot any issues. All-in-all a decent program, although it's no speed-demon, IMHO.

share|improve this answer

It appers to me to be overkill to write a batch script for you. You can do this easily via a GUI-application, like Comodo Backup.

It can even backup to FTP drives:

Backup to anywhere Network drive, external drive, FTP, DVD/CD, ISO, zip, online storage - you name it, Comodo Backup can copy to it!

share|improve this answer
Im on windows. its local folder that is shared by dropbox and used by others. i want to have a backup on a different external hardisk. – ilansch Jun 24 '12 at 7:24
I edited my answer :) – Ryqiem Jun 24 '12 at 7:30
Id rather do it on batch script so i could manage it by myself without 3rd party tool.. thanks for the commodo backup link. but i dont like commercial apps, if i can do it myself. – ilansch Jun 24 '12 at 8:52
this work: echo off if exist "C:\Backup" goto GO goto ERR :GO xcopy "C:\Cypress*.*" "C:\Backup*.*" /m/e/y echo/ echo ** Copy complete! ** echo/ pause :ERR echo/ echo ** ERROR - files cannot be copied! ** echo/ pause – ilansch Jun 24 '12 at 9:04
@ilansch Answer your own question please with that script. It doesn't work in comments, since everything is in one line, – slhck Jun 24 '12 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.