backup file on change

Discuss RoboTask here
Post Reply
rjkantor
Posts: 8
Joined: Tue Jul 29, 2014 5:00 pm

backup file on change

Post 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
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: backup file on change

Post 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.
Oleg Yershov
Post Reply