Managing backups

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

Moderator: Mr_Noodle

Managing backups Tue Nov 12, 2013 9:30 am • by Dmitry_Sh
Hi,

Spent a few hours reading help, support forums and internet.
Still could get only half way through.

Here is what I'm trying to accomplish:

1) Folder A contains:
original_file.txt
Backups (directory)

2) Backups folder contains:
"<time-stamp> 1 original_file.txt"
"<time-stamp> 2 original_file.txt"
Backups were made manually

3) Backup logic:
a. look into folder Backups and see if all files were added more than 2hr ago
b. copy "original_file.txt" from folder A into Backups folder and rename with time-stamp.

I am able to traverse folder structure and get to 3a. What I'm struggling with is how to execute 3b.
This seems to be going against my interpretation of Hazel logic "watch file/folder and act on it", as i''m trying to accomplish "watch file, act on another".

Which logic should I follow to get this backup approach to work?

thank you,
Dmitry
Dmitry_Sh
 
Posts: 1
Joined: Tue Nov 12, 2013 9:17 am

Re: Managing backups Wed Nov 13, 2013 11:55 am • by Mr_Noodle
I think a script is the only way to do this since it involved an unrelated file.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support