I have a couple thinks I like to do every now and then, but that are connected to some things that cannot be determined by the computer directly, like those:
Create a backup of some FTP servers.
The problem is that it takes some time to to this and I'd like to run it only at home, since the passwords are not encrypted.
Do a virus scan of all the files that I exchange with other people.
For this, I would like to avoid doing this on battery, since it consumes so much power.
Clean up
octave-corefiles through the file system. This is a simplefindcommand, and could be run at any time really. I got a similar one to remove all the unison files.Compress all git repositories. This takes some times as well and I'd like to run that only when I am not working on programming things right now.
Run
updatedb, which has do be done as root though.
Cron jobs seem kind of good, but I am not sure whether they would be started when the computer was off during that time, and if they would be done on the next start, it would hog the ressources when I have to do something time critical.
On the Mac, there is the periodic daily weekly monthly command which performs
those kind of things.
Is there something I could use for this or should I just create some scripts
like maintenance-home.sh, maintenance-monthly.sh and so on?
periodicis just an implementation ofcron. "The periodic utility is intended to be called by cron(8) to execute shell scripts located in the specified directory" (ibid). So ifperiodicprovided the behavior you wanted before, I don't see any reason whycronwouldn't work now. – adempewolff Sep 17 '12 at 14:46croncallsperiodic, but you can callperiodicyourself.cromdoes not have this. Basically, I want to say “I have time now, do what you have to do.” and then it will start working. – Martin Ueding Sep 17 '12 at 15:02/usr/binif you are more of the CLI type) linking to your scripts in their respectivecrondirectories. Thne whenever you have time you could click the launcher or run the symlinked command. – adempewolff Sep 17 '12 at 15:42crondirectories is probably not too good, then the virus scan would just start when I have no time for it. – Martin Ueding Sep 17 '12 at 15:45/etc/cron.monthlythat I could tab into. But I guess it is just the easiest way to userun-partsfrom thecronsuite and tell it where my folder with tasks is. – Martin Ueding Sep 17 '12 at 15:57