regular backup folder (+ subfolder) with file versioning

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hello,
I would like to know how to write a set of rules to:
- backup hourly a folder called Source (and all of its subfolders) to a folder called Destination
- in the Destination folder, never erase files. For example, when the test.pdf file is backed up, a date/time stamp is added so that I end up with multiple backup copies of the same file each one with a different filename (because the date / time stamp is different). Although I am being liberal in my use of the term, I call this file versioning.
thanks in advance for your time and help
dorindon
 
Posts: 17
Joined: Tue Jan 09, 2018 4:16 am

Set up a rule to do the copying. The copy action has options to preserve the folder structure. Then you can use the Rename action to rename the file with the date. For the hourly part, you can either try and "schedule" it using the "Current time" attribute in the conditions. Alternatively, you can try using "Date last matched is not in the last 1 hour".

From there, you will need a separate rule to tell Hazel to go into subfolders. Check the manual as there's a whole chapter dedicated to this topic.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

thank you !
dorindon
 
Posts: 17
Joined: Tue Jan 09, 2018 4:16 am


Return to Support