Originally posted by Dave2002
View Post
OK - you win!
I used a script rather like this one:
COUNTER=0
echo >> TMfile.txt
echo New Run `date` >> TMfile.txt
while [ $COUNTER -lt 2400 ]; do
echo “The counter is” $COUNTER
echo "Before first write"
echo "Counter= " $COUNTER `date` >> TMfile.txt
echo "Before sleep"
sleep 60
let COUNTER=COUNTER+1
done
echo "ENDING"
and issued a "source scriptfile" command from within Terminal. Took a day or two to figure things out. One minor problem was that the command wasn't running all the time - it looks as though command line commands shut down if the CPU goes to sleep. The fix wasn't too difficult - set System Preferences -> Energy Saver so that the display sleeps, but the CPU never does. This gives a file with regular time stamps, and indeed it is possible to see that TM does save a copy every hour for the first 24 hours. Further back in time it does save one per day, but there's no guarantee which copy it'll save. This is useless for people who keep editing the same file and who may want to be able to get back to any version on any previous day, unless the applications themselves do backups, which some can do. Word can do that - though changes may be lost if files are passed between coworkers. Possibly TextEdit will do backups too.
Some people explicitly rename file copies regularly - which is what I do if I'm doing intensive work on a project - and the "obvious" thing to do is to append a date+time code to each edited and saved copy on any day. Then there's not much point in using TM anyway, other than to get a modicum of backtracking within a 24 hour period. TM won't give fine granularity once tomorrow arrives!
I think Unix systems have commands which are cleverer than this, and can recover any version from any day, but they may not work well with the kind of data and application files which are commonly used in MacOS X.
I think few people really understand what TM does in sufficient depth. It's better than nothing, but would be less useful for some projects than it might have been, though it is probably quite efficient with storage.
See also rcs and sccs - https://en.wikipedia.org/wiki/List_o...ntrol_software
Comment