ansible-playbooks/roles/files/debian/setup/crontabs/root

23 lines
689 B
Text
Raw Normal View History

2024-10-29 01:36:24 +08:00
# VIM Default Editor
@reboot export VISUAL=vim
@reboot export EDITOR=vim
# Fix tmux bug
@reboot tmux
# Network mount
2024-11-14 01:50:54 +08:00
* * * * * sudo mount.cifs "//255.255.255.0/SAMBA-MOUNT" "/mnt/backups/" -o credentials="/root/.samba/credentials"
2024-10-29 01:36:24 +08:00
# Start services
@reboot sleep 30 && tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"
# Backups
2024-11-14 01:51:19 +08:00
0 */4 * * * tmux new-session -d -s "Borg Backups" "bash /root/scripts/backup.sh"
2024-10-29 01:36:24 +08:00
# Docker Cleanup
0 0 1 * * docker system prune --all --volumes --force
# ACME
52 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
2024-11-14 01:51:19 +08:00
0 */7 * * * tmux new-session -d -s "Acme SSL Updater" "bash /root/scripts/acme_ssl.sh"