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
backup file on change
Re: backup file on change
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.
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.
Oleg Yershov