Video support, comment section, more
This commit is contained in:
@@ -31,11 +31,14 @@ HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
install -m 644 "$HERE/taskforge.service" /etc/systemd/system/taskforge.service
|
||||
sed "s/{DOMAIN}/$DOMAIN/" "$HERE/Caddyfile" > /etc/caddy/Caddyfile
|
||||
|
||||
# Daily consistent backup (safe while the server runs), kept for 14 days.
|
||||
# Daily consistent backup (safe while the server runs), kept for 14 days. Attachments are immutable files
|
||||
# named by their hash, so copying the new ones is enough.
|
||||
cat > /etc/cron.daily/taskforge-backup <<'EOF'
|
||||
#!/bin/sh
|
||||
sqlite3 /var/lib/taskforge/taskforge.db ".backup '/var/backups/taskforge/taskforge-$(date +%F).db'"
|
||||
find /var/backups/taskforge -name 'taskforge-*.db' -mtime +14 -delete
|
||||
mkdir -p /var/backups/taskforge/blobs
|
||||
cp -rn /var/lib/taskforge/blobs/. /var/backups/taskforge/blobs/ 2>/dev/null || true
|
||||
EOF
|
||||
chmod 755 /etc/cron.daily/taskforge-backup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user