mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
Add backup scripts
This commit is contained in:
10
backup.sh
Executable file
10
backup.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /home/iboaz/.restic.sh
|
||||
|
||||
exec > >(logger -t backup) 2>&1
|
||||
|
||||
/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/ backup --exclude-file=/home/iboaz/excludes.txt --one-file-system --verbose /
|
||||
/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
|
||||
38
cf-dns/docker-compose.yml
Normal file
38
cf-dns/docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: "3"
|
||||
services:
|
||||
cf-public:
|
||||
image: favonia/cloudflare-ddns:latest
|
||||
network_mode: host
|
||||
restart: always
|
||||
cap_add:
|
||||
- SETUID
|
||||
- SETGID
|
||||
cap_drop:
|
||||
- all
|
||||
read_only: true
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- CF_API_TOKEN=${CF_API_TOKEN}
|
||||
- DOMAINS=*.code.msws.xyz
|
||||
- PROXIED=false
|
||||
# cf-internal:
|
||||
# image: favonia/cloudflare-ddns:latest
|
||||
# network_mode: host
|
||||
# restart: always
|
||||
# cap_add:
|
||||
# - SETUID
|
||||
# - SETGID
|
||||
# cap_drop:
|
||||
# - all
|
||||
# read_only: true
|
||||
# security_opt:
|
||||
# - no-new-privileges:true
|
||||
# environment:
|
||||
# PUID: 1000
|
||||
# PGID: 1000
|
||||
# CF_API_TOKEN: ${CF_API_TOKEN}
|
||||
# DOMAINS: "go.msws.xyz"
|
||||
# PROXIED: "true"
|
||||
@@ -1,38 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
# cf-public:
|
||||
# image: favonia/cloudflare-ddns:latest
|
||||
# network_mode: host
|
||||
# restart: always
|
||||
# cap_add:
|
||||
# - SETUID
|
||||
# - SETGID
|
||||
# cap_drop:
|
||||
# - all
|
||||
# read_only: true
|
||||
# security_opt:
|
||||
# - no-new-privileges:true
|
||||
# environment:
|
||||
# - PUID=1000
|
||||
# - PGID=1000
|
||||
# - CF_API_TOKEN=${CF_API_TOKEN}
|
||||
# - DOMAINS=*.code.msws.xyz
|
||||
# - PROXIED=false
|
||||
cf-internal:
|
||||
image: favonia/cloudflare-ddns:latest
|
||||
network_mode: host
|
||||
restart: always
|
||||
cap_add:
|
||||
- SETUID
|
||||
- SETGID
|
||||
cap_drop:
|
||||
- all
|
||||
read_only: true
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
environment:
|
||||
PUID: 1000
|
||||
PGID: 1000
|
||||
CF_API_TOKEN: ${CF_API_TOKEN}
|
||||
DOMAINS: "go.msws.xyz"
|
||||
PROXIED: "true"
|
||||
13
excludes.txt
Normal file
13
excludes.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
/home/iboaz/jellyfin/media
|
||||
/proc
|
||||
/sys
|
||||
/tmp
|
||||
/var/tmp
|
||||
/var/cache
|
||||
/var/log
|
||||
/dev
|
||||
/mnt
|
||||
/media
|
||||
/lost+found
|
||||
node_modules
|
||||
__pycache__
|
||||
Reference in New Issue
Block a user