If there's any change in ~/mydir
, I want to copy it to ~/someotherdir/mydir_revisions/04-02-2013
(which is today's date). It should continue to copy to this same directory for 1 week. Thereafter, it should create a new directory (~/someotherdir/mydir_revisions/04-09-2013
, which is that day's date and continue using that directory for a week). These backups would continue indefinitely, always utilizing a particular date for a whole week before updating the date.
If it matters, I'm using Archlinux and copying to a different filesystem. How can I do this with incron or any other recommended package?