Update discourse and backup script

This commit is contained in:
MSWS
2025-11-30 21:13:56 -08:00
parent fd7eaf35e5
commit 8ebf3b427b
3 changed files with 7 additions and 3 deletions

View File

@@ -12,9 +12,9 @@ exec > >(logger -t backup) 2>&1
#/usr/bin/restic unlock
#/usr/bin/restic backup -o s3.storage-class=INTELLIGENT_TIERING --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose /
/usr/bin/restic -r /mnt/usb/backups/ unlock
/usr/bin/restic -r /mnt/usb/backups/ backup --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose --json / | python3 /home/iboaz/backup_log.py "USB"
/usr/bin/restic -r /mnt/usb/backups/ backup --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose --json / /mnt/samsung/copyparty | python3 /home/iboaz/backup_log.py "USB"
/usr/bin/restic -r b2:debian-homelab-backups:/ unlock
/usr/bin/restic -r b2:debian-homelab-backups:/ backup --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose --json / | python3 /home/iboaz/backup_log.py "Backblaze"
/usr/bin/restic -r b2:debian-homelab-backups:/ backup --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose --json / /mnt/samsung/copyparty | python3 /home/iboaz/backup_log.py "Backblaze"
/usr/bin/restic forget --keep-last 1 --keep-daily 3 --keep-weekly 4 --keep-monthly 3 --keep-yearly 3 --prune
/usr/bin/restic -r /mnt/usb/backups/ forget --keep-last 1 --keep-daily 7 --keep-weekly 8 --keep-monthly 3 --keep-yearly 3 --prune
/usr/bin/restic -r b2:debian-homelab-backups:/ forget --keep-last 1 --keep-daily 3 --keep-weekly 4 --keep-monthly 3 --keep-yearly 3 --prune

View File

@@ -80,6 +80,10 @@ torrent.local.msws.xyz {
}
}
discourse.msws.xyz {
reverse_proxy discourse:80
}
:80, :443 {
handle_path /resume* {
rewrite * /MSWS/Resume/main/Resume.pdf

View File

@@ -11,5 +11,5 @@ services:
- no-new-privileges:true
environment:
- CF_API_TOKEN=${CF_API_TOKEN}
- DOMAINS=*.code.msws.xyz,git.msws.xyz,registry.msws.xyz
- DOMAINS=*.code.msws.xyz,git.msws.xyz,registry.msws.xyz,discourse.msws.xyz
- PROXIED=false