User Tools

Site Tools


crontab

Per risvegilare il server automaticamente, uso il comando rtcwake

Vedere qui: http://askubuntu.com/questions/61708/automatically-sleep-and-wake-up-at-specific-times


Oggi (19 dicembre 2012) il mio crontab -e dà questo:

# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command

*/15 * * * * offlineimap -1

# nonché per getmail, che mi scarica le mail di lavoro da esteri.it

*/5 * * * * /usr/bin/getmail --rcfile biblioteca --rcfile francesco

# lancio virsh al reboot per via di un bug in qemu-kvm
@reboot /usr/bin/virsh net-start default

# lancio dropbox al reboot
@reboot /usr/local/bin/dropbox.py start

# lancio notmuch ogni ora per indicizzare le mie mail
@hourly /usr/bin/notmuch new

# back up della directory dei diari
33 3 * * * /usr/local/bin/diari_bkk.sh

# back up dei file di configurazione varî
55 5 * * * pax -w -f /home/francesco/Dropbox/bkk/server_HP/configurazione.tar /home/francesco/.[a-zA-Z0-9]*
crontab.txt · Last modified: 2014/04/29 18:03 by francesco