Backup Restic Failed

Hi everyone

I try to restart nethserver but the backup still failed this is the log:

Backup: bck_ns_restic
Backup started at 2023-08-31 13:00:01
Pre backup scripts status: SUCCESS
using parent snapshot 7c1c5b15

Files: 46040 new, 119 changed, 19733550 unmodified
Dirs: 5709 new, 66 changed, 2475997 unmodified
Added to the repo: 534.252 MiB

processed 19779709 files, 774.740 GiB in 3:33:31
snapshot 4b3a77a9 saved
unable to create lock in backend: repository is already locked by PID 30796 on srv01.customer.local by root (UID 0, GID 0)
lock was created at 2023-07-28 15:52:53 (818h24m4.908673976s ago)
storage ID ebd7986e
the unlock command can be used to remove stale locks
Cleanup failed
Action ‘backup-data-restic bck_ns_restic’: FAIL
Backup status: FAIL

Here are some solutions:

1 Like

Try this:

/etc/e-smith/events/actions/mount-$(db backups getprop bck_ns_restic VFSType) null bck_ns_restic
restic --cache-dir /var/lib/nethserver/backup/restic -p /var/lib/nethserver/secrets/restic_bck_ns_restic -r /mnt/backup-bck_ns_restic unlock -v
/etc/e-smith/events/actions/umount-$(db backups getprop bck_ns_restic VFSType) null bck_ns_restic
1 Like