check borgmatic and rsnapshot configurations
This commit is contained in:
@@ -3,6 +3,7 @@ location:
|
|||||||
- /remote/server/bram
|
- /remote/server/bram
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/bram
|
- /repo/bram
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
encryption_passcommand: cat /keys/bram.key
|
encryption_passcommand: cat /keys/bram.key
|
||||||
compression: lz4
|
compression: lz4
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ storage:
|
|||||||
# archives with a different archive name format.
|
# archives with a different archive name format.
|
||||||
archive_name_format: '{hostname}-documents-{now}'
|
archive_name_format: '{hostname}-documents-{now}'
|
||||||
|
|
||||||
unknown_unencrypted_repo_access_is_ok: true
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
# Retention policy for how many backups to keep in each category. See
|
# Retention policy for how many backups to keep in each category. See
|
||||||
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
||||||
|
|||||||
@@ -3,9 +3,11 @@ location:
|
|||||||
- /shuttle/etc
|
- /shuttle/etc
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/etc
|
- /repo/etc
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
compression: lz4
|
compression: lz4
|
||||||
archive_name_format: '{now:%Y-%m-%d}'
|
archive_name_format: '{now:%Y-%m-%d}'
|
||||||
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
retention:
|
retention:
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ location:
|
|||||||
- '- /shuttle/home/*/.cache'
|
- '- /shuttle/home/*/.cache'
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/home
|
- /repo/home
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
compression: lz4
|
compression: lz4
|
||||||
archive_name_format: '{now:%Y-%m-%d}'
|
archive_name_format: '{now:%Y-%m-%d}'
|
||||||
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
retention:
|
retention:
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
|
|||||||
@@ -9,9 +9,11 @@ location:
|
|||||||
- '- /shuttle/opt/openvpn-server/*.log'
|
- '- /shuttle/opt/openvpn-server/*.log'
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/opt
|
- /repo/opt
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
compression: lz4
|
compression: lz4
|
||||||
archive_name_format: '{now:%Y-%m-%d}'
|
archive_name_format: '{now:%Y-%m-%d}'
|
||||||
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
retention:
|
retention:
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
|
|||||||
@@ -5,9 +5,11 @@ location:
|
|||||||
- '- /shuttle/root/.cache'
|
- '- /shuttle/root/.cache'
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/root
|
- /repo/root
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
compression: lz4
|
compression: lz4
|
||||||
archive_name_format: '{now:%Y-%m-%d}'
|
archive_name_format: '{now:%Y-%m-%d}'
|
||||||
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
retention:
|
retention:
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/usr/bin/borgmatic --stats -v 0 -c /config/root.yaml >> /log/root.log 2>&1
|
/usr/bin/borgmatic --stats -v 0 -c /config/root.yaml >> /log/root.log 2>&1
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/opt.yaml >> /log/opt.log 2>&1
|
/usr/bin/borgmatic --stats -v 0 -c /config/opt.yaml >> /log/opt.log 2>&1
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/etc.yaml >> /log/etc.log 2>&1
|
/usr/bin/borgmatic --stats -v 0 -c /config/etc.yaml >> /log/etc.log 2>&1
|
||||||
#/usr/bin/borgmatic --stats -v 0 -c /config/argenta.yaml >> /log/argenta.log 2>&1
|
|
||||||
export REMOTE=/remote/server/bram
|
export REMOTE=/remote/server/bram
|
||||||
mkdir -p ${REMOTE}
|
mkdir -p ${REMOTE}
|
||||||
sshfs user@bram.veenboer.xyz:/media/helios/Bram ${REMOTE}
|
sshfs user@bram.veenboer.xyz:/media/helios/Bram ${REMOTE}
|
||||||
|
|||||||
@@ -157,9 +157,10 @@ geo.rik.veenboer.xyz {
|
|||||||
# trusted_proxies: Trust 'X-Forwarded-For' header_up if trusted_proxies is also valid (see https://caddyserver.com/docs/caddyfile/options#trusted-proxies)
|
# trusted_proxies: Trust 'X-Forwarded-For' header_up if trusted_proxies is also valid (see https://caddyserver.com/docs/caddyfile/options#trusted-proxies)
|
||||||
# default: trusted_proxies
|
# default: trusted_proxies
|
||||||
|
|
||||||
# Respond to anyone in NL
|
|
||||||
@geofilter expression ({geoip2.country_code} == "NL")
|
@geofilter expression ({geoip2.country_code} == "NL")
|
||||||
|
|
||||||
|
# @geofilter expression {geoip2.country_eu}
|
||||||
|
|
||||||
route @geofilter {
|
route @geofilter {
|
||||||
reverse_proxy host:12345 {
|
reverse_proxy host:12345 {
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ services:
|
|||||||
container_name: borgmatic
|
container_name: borgmatic
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Amsterdam
|
- TZ=Europe/Amsterdam
|
||||||
- BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
|
|
||||||
image: b3vis/borgmatic:v1.1.10-1.4.21
|
image: b3vis/borgmatic:v1.1.10-1.4.21
|
||||||
privileged: true
|
privileged: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -13,8 +12,7 @@ services:
|
|||||||
- /opt/borgmatic/keys:/keys
|
- /opt/borgmatic/keys:/keys
|
||||||
- /opt/borgmatic/cache:/cache
|
- /opt/borgmatic/cache:/cache
|
||||||
- /opt/borgmatic/log:/log
|
- /opt/borgmatic/log:/log
|
||||||
- /root/.ssh:/root/.ssh
|
- /root/.ssh:/root/.ssh:ro
|
||||||
- /mnt/yotta/xenon/borg:/repo
|
- /mnt/yotta/xenon/borg:/repo
|
||||||
- /mnt/yotta/xenon/manual:/manual
|
- /:/shuttle:ro
|
||||||
- /:/shuttle
|
|
||||||
- /dev/fuse:/dev/fuse
|
- /dev/fuse:/dev/fuse
|
||||||
|
|||||||
@@ -9,6 +9,5 @@ services:
|
|||||||
- /opt/rsnapshot/var/run:/var/run
|
- /opt/rsnapshot/var/run:/var/run
|
||||||
- /opt/rsnapshot/var/spool:/var/spool
|
- /opt/rsnapshot/var/spool:/var/spool
|
||||||
- /opt/rsnapshot/usr:/host/usr
|
- /opt/rsnapshot/usr:/host/usr
|
||||||
- /opt/host_aliases:/host/etc/host_aliases
|
|
||||||
- /mnt/yotta/xenon/rsnapshot:/host/scratch
|
- /mnt/yotta/xenon/rsnapshot:/host/scratch
|
||||||
- /root/.ssh:/root/.ssh
|
- /root/.ssh:/root/.ssh:ro
|
||||||
|
|||||||
@@ -52,6 +52,3 @@ include:
|
|||||||
- docker-compose.timescaledb.yml
|
- docker-compose.timescaledb.yml
|
||||||
- docker-compose.influxdb.yml
|
- docker-compose.influxdb.yml
|
||||||
|
|
||||||
networks:
|
|
||||||
vpn:
|
|
||||||
driver: bridge
|
|
||||||
|
|||||||
@@ -6,32 +6,32 @@ lockfile /var/run/rsnapshot/os.pid
|
|||||||
snapshot_root /host/scratch/os
|
snapshot_root /host/scratch/os
|
||||||
|
|
||||||
backup root@shuttle:/bin shuttle
|
backup root@shuttle:/bin shuttle
|
||||||
backup root@shuttle:/boot shuttle
|
#backup root@shuttle:/boot shuttle
|
||||||
backup root@shuttle:/etc shuttle
|
backup root@shuttle:/etc shuttle
|
||||||
backup root@shuttle:/lib shuttle
|
#backup root@shuttle:/lib shuttle
|
||||||
backup root@shuttle:/lib64 shuttle
|
#backup root@shuttle:/lib64 shuttle
|
||||||
backup root@shuttle:/usr shuttle
|
#backup root@shuttle:/usr shuttle
|
||||||
backup root@shuttle:/var shuttle
|
#backup root@shuttle:/var shuttle
|
||||||
|
|
||||||
backup root@sepia:/bin sepia
|
backup root@sepia:/bin sepia
|
||||||
backup root@sepia:/boot sepia
|
#backup root@sepia:/boot sepia
|
||||||
backup root@sepia:/etc sepia
|
backup root@sepia:/etc sepia
|
||||||
backup root@sepia:/lib sepia
|
#backup root@sepia:/lib sepia
|
||||||
backup root@sepia:/lib64 sepia
|
#backup root@sepia:/lib64 sepia
|
||||||
backup root@sepia:/usr sepia
|
#backup root@sepia:/usr sepia
|
||||||
backup root@sepia:/var sepia
|
#backup root@sepia:/var sepia
|
||||||
|
|
||||||
backup root@server:/bin server
|
backup root@server:/bin server
|
||||||
backup root@server:/boot server
|
#backup root@server:/boot server
|
||||||
backup root@server:/etc server
|
backup root@server:/etc server
|
||||||
backup root@server:/lib server
|
#backup root@server:/lib server
|
||||||
backup root@server:/lib64 server
|
#backup root@server:/lib64 server
|
||||||
backup root@server:/usr server
|
#backup root@server:/usr server
|
||||||
backup root@server:/var server
|
#backup root@server:/var server
|
||||||
|
|
||||||
exclude /var/cache/apt
|
exclude /var/cache/apt
|
||||||
exclude /var/lib/apt
|
exclude /var/lib/apt
|
||||||
exclude /var/lib/docker
|
exclude /var/lib/docker
|
||||||
exclude /var/lib/mlocate
|
exclude /var/lib/mlocate
|
||||||
exclude /usr/lib/debug
|
exclude /usr/lib/debug
|
||||||
exclude /usr/share/locale
|
exclude /usr/share/locale
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
. /etc/container_environment.sh
|
/bin/nice -n 19 /bin/ionice -c2 -n7 /usr/bin/rsnapshot -c /etc/rsnapshot/$1.conf $2
|
||||||
/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/rsnapshot -c /etc/rsnapshot/$1.conf $2
|
|
||||||
|
|||||||
Reference in New Issue
Block a user