add gateway automatic template and fefan vm

This commit is contained in:
2026-01-19 17:05:38 +01:00
parent d98c7b8bdb
commit f851ead7cd
56 changed files with 1243 additions and 82 deletions

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Backup Service
Wants=network.target
After=network.target docker.service
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/backup.sh

View File

@@ -1,5 +1,5 @@
[Unit]
Description=Run Bookshelf backup weekly
Description=Run backup weekly
[Timer]
OnCalendar=Sun *-*-* 01:00:00

View File

@@ -1,11 +1,9 @@
[Unit]
Description=Restore latest Bookshelf backup
Description=Restore latest backup
After=network.target
Requires=docker.service
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/restore-backup.sh
WorkingDirectory=/home/bookshelf
TimeoutStartSec=600
ExecStart=/usr/local/bin/restore-backup.sh

View File

@@ -1,10 +0,0 @@
[Unit]
Description=Weekly Bookshelf Backup
Wants=network.target
After=network.target docker.service
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/backup.sh