initial borg skripte

This commit is contained in:
2026-04-27 20:14:20 +02:00
commit d7f59d92a6
6 changed files with 51 additions and 0 deletions
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
# Skript erzeugt backup
. /root/bin/borg.env # lies REPO_PATH aus env Datei
# borg create --stats --progress --rsh "ssh -i /root/.ssh/id_borg_ecdsa_p384 -p $SSH_PORT" ${REPO_PATH}::'{now:%Y-%m-%d_%H-%M}' /etc /root/ /home /opt /var/cache /var/log
borg create --stats --progress ::'{now:%Y-%m-%d_%H-%M}' /etc /root/ /home /opt /var/cache /var/log