Page 1 of 1

backup file on change

Posted: Mon Dec 01, 2014 7:59 pm
by rjkantor
I am trying to monitor a folder and when a file is changed, I want to copy it as a backup prior to being overwritten. Can this be achieved ?

If so, how? I was trying to use the monitor as a trigger and a copy but that did not work.

Thank you,
Rob

Re: backup file on change

Posted: Tue Dec 02, 2014 11:07 am
by Oleg
File monitor trigger runs the task after changes in folder
So the task can't catch the moment before changes.

The standard way - incremental backup.
Idea is simple:
Make several copies on daily (weekly, monthly or hourly) basis.
The backup folder may have such name: c:\MyBackups\YYYYMMDD
YYYY - year
MM - month
DD - day

Old backups you may remove (for example older than 7 days)

See the example named "[DEMO] Backup your tasks (daily backup)"

You also can get it here.