saving uncommitted changes in /etc prior to apt run
This commit is contained in:
@@ -608,6 +608,7 @@ maybe chmod 0644 'cron.weekly/.placeholder.disabled'
|
||||
maybe chmod 0755 'cron.weekly/debsums'
|
||||
maybe chmod 0755 'cron.weekly/dh-dovecot'
|
||||
maybe chmod 0755 'cron.weekly/man-db.disabled'
|
||||
maybe chmod 0755 'cron.weekly/restic-prune'
|
||||
maybe chmod 0755 'cron.weekly/rkhunter'
|
||||
maybe chmod 0600 'crontab'
|
||||
maybe chmod 0755 'cruft'
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# prunes backup repos and rebuilds them
|
||||
/usr/bin/restic -r /backup/restic-repo prune --password-file /root/.restic
|
||||
@@ -23,8 +23,9 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
#*/5 * * * * php-cli -f /var/www/vhosts/solusar.de/subdomains/nextcloud/cron.php
|
||||
0 0,12 * * * root /opt/certbot/bin/python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q
|
||||
|
||||
0 1 * * * root /usr/local/bin/restic -r /backup/restic-repo backup /var/opt/vmail --password-file /root/.restic
|
||||
15 1 * * * root /usr/local/bin/restic -r /backup/restic-repo backup /var/www --password-file /root/.restic
|
||||
#0 1 * * * root /usr/local/bin/restic -r /backup/restic-repo backup /var/opt/vmail --password-file /root/.restic
|
||||
30 1 * * * root /usr/local/bin/restic -r /backup/restic-repo forget --keep-daily 7 --keep-weekly 2 --prune --password-file /root/.restic
|
||||
0 1 * * * root /usr/bin/restic -r /backup/restic-repo backup /var/opt/vmail --password-file /root/.restic
|
||||
15 1 * * * root /usr/bin/restic -r /backup/restic-repo backup /var/www --password-file /root/.restic
|
||||
20 1 * * * root /usr/bin/restic -r /backup/restic-repo backup /etc --password-file /root/.restic
|
||||
30 1 * * * root /usr/bin/restic -r /backup/restic-repo forget --keep-daily 7 --keep-weekly 2 --password-file /root/.restic
|
||||
|
||||
0 2 * * * root /usr/bin/rsync -a --password-file=/root/.rsync /backup/ Gorden@realm.solusar.de::NetBackup/euve130167/
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ BLACKLIST=/usr/local/etc/blacklist.txt
|
||||
#trigger for your ports
|
||||
#IN_ALLOWED_TCP="21 22 25 53 80 443 465 993 995 2812 10024 10025 64738"
|
||||
IN_ALLOWED_TCP="22 25 53 80 443 587 993 1024:65535"
|
||||
OUT_ALLOWED_TCP="22 25 53 80 443 587 993 2703 1024:65535"
|
||||
OUT_ALLOWED_TCP="22 25 53 80 443 587 873 993 2703 1024:65535"
|
||||
IN_ALLOWED_UDP="53 64738"
|
||||
OUT_ALLOWED_UDP="53"
|
||||
IN_ALLOWED_ICMP=" "
|
||||
|
||||
Reference in New Issue
Block a user