I'm writing a shell script and I need to determine the newest folder somehow. There will be a folder for each day named like 2007-07-08 and within each of those will be a folder with the time like 7-00 or 13-30. Anybody have any tips?
The purpose of all of this is to have an incremental backup sort of like time machine so that I can see how a document looked an hour ago. I'm planning to have it run hourly whenever my external hard drive is connected to my MacBook and I'd like to have it keep the hourly backups for 2 days and then just keep the newest backup for days prior to that. Hopefully that makes sense.
The backup process is very easy by making a hard linked copy of the last backup and then running rsync, which will only update the changed files.
Incase you are wondering, yes, I am paranoid about losing my university work.
Thanks in advance,
Andrew
The purpose of all of this is to have an incremental backup sort of like time machine so that I can see how a document looked an hour ago. I'm planning to have it run hourly whenever my external hard drive is connected to my MacBook and I'd like to have it keep the hourly backups for 2 days and then just keep the newest backup for days prior to that. Hopefully that makes sense.
The backup process is very easy by making a hard linked copy of the last backup and then running rsync, which will only update the changed files.
Incase you are wondering, yes, I am paranoid about losing my university work.
Thanks in advance,
Andrew