Initial pve cloud backup app
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
INSTALL_DIR="/opt/pve-cloud-backup"
|
||||
|
||||
if [[ "$(id -u)" -ne 0 ]]; then
|
||||
echo "Run as root." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl disable --now pve-cloud-backup-worker.service 2>/dev/null || true
|
||||
systemctl disable --now pve-cloud-backup-web.service 2>/dev/null || true
|
||||
rm -f /etc/systemd/system/pve-cloud-backup-worker.service
|
||||
rm -f /etc/systemd/system/pve-cloud-backup-web.service
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "Services removed."
|
||||
echo "Application data remains at $INSTALL_DIR. Remove it manually only after confirming backups and app.db are no longer needed."
|
||||
Reference in New Issue
Block a user