Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to track changes to folders with files like jpg or docx, and make a copy to another folder.

I need to make a copy of the file when it changes, keeping the filename and adding the current datetime.

SOURCE: mydoc.docx

TARGET:

mydoc.20111224080000.docx //Changed at 08:00:00

And if I change mydoc.docx a little later target would look like this:

TARGET:

mydoc.20111224080000.docx //Changed at 08:00:00

mydoc.20111224080200.docx //Changed at 08:02:00

The comparison should allways be against the newest file in the TARGET folder.

I need to run in the background, monitoring the folder og in time intervals.

Is there a program that I can use?

share|improve this question

1 Answer 1

One type of program you could use is a version control program. They were originally designed for keeping track of changes to source code, but you can use them with virtually any type of file.

You put all the files you want to have version of into it and then when you edit the file it basically takes a copy. You need to remember to check the file back into the repository for each version you want to keep.

You can get any version back out of the system and anyone you give access to can edit the files as well.

share|improve this answer
    
You could setup a VCS to auto add/commit changes with a scheduled task if he wants to skip the manual commit part. –  Zoredache Oct 20 '11 at 21:18
    
No dice. I need the files raw in the file system. So that I can copy them later. –  Morten Lyhr Oct 20 '11 at 21:57
    
@MortenLyhr - There may be a way to do this dependant on the system you use, but it might be more complicated than you need. –  ChrisF Oct 21 '11 at 7:53

Your Answer

 
discard

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.