updated kopia state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2025-08-01 16:31:48 +02:00
parent 7d4c70c144
commit 99f183e09a
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Kopia backup
After=network.target
[Service]
Type=exec
ExecStart=/usr/bin/python3 /etc/kopia/desktop/backup.py run
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Kopia Backup
[Timer]
OnCalendar=daily
Persistent=true
OnBootSec=10min
[Install]
WantedBy=timers.target

View File

@ -34,7 +34,7 @@ def init(mode="filesystem", path=None, bucket=None, prefix=None, gateway=None, r
run_connect = Popen(cmd_connect, shell=True, stdout=PIPE, stderr=PIPE)
run_connect.wait()
if run_connect.returncode != 0:
print("erro connecting to repository")
print("error connecting to repository")
else:
print("no valid mode or missing informations")
return None