Cartorio-itapema-srv-bkp-crontab

De Wiki NOC

Servidor Backup - Crontab

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

MAILTO=""
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
#
# Backup Remoto na Lupa Servidor dedicado a isso (192.168.0.60)
#00 22  * * 1-5 root    /home/lupa/scripts/bkp_arquivos_remoto.sh
#


#BACKUP LOCAL
#00 05  * * 1-6 root    /home/lupa/scripts/backup/bkp_arquivos.sh
00 08   * * 1-6 root    /home/lupa/scripts/backup/bkp-sql-cart.sh
00 20   * * 1-6 root    /home/lupa/scripts/backup/bkp_CartFiles.sh
00 23   * * *   root    /home/lupa/scripts/backup/arquivos.sh

#RECICLAGEM BASE DE DADOS
00 08   * * 1-6 root    find /media/2a754a27-f8b6-41d4-ab7d-4411f6723240/bkp_base/ -type f -mtime 5 -exec rm  {} \;
00 19   * * *   root    find /media/20f62edd-2013-4fd9-938d-177d0ac67262/backup/Server-2000/F/Backup\ Cart/ -type f -mtime +4 -exec rm -rf {} \;

#monitoramento de disco
0 */8   * * *   root    /home/lupa/scripts/monitoramento/espaco_hd.sh

#Backup diario USB
30 10   * * 1   root    /home/lupa/scripts/backup/backupUSB/segunda.sh
30 10   * * 2   root    /home/lupa/scripts/backup/backupUSB/terça.sh
30 10   * * 3   root    /home/lupa/scripts/backup/backupUSB/quarta.sh
30 10   * * 4   root    /home/lupa/scripts/backup/backupUSB/quinta.sh
30 10   * * 5   root    /home/lupa/scripts/backup/backupUSB/sexta.sh
Ferramentas pessoais