1 hour ago · Tech · hide · 0 comments

When running: $ borg create --stats --progress --compress lz4 -e ~/Downloads/ --exclude-caches /path/to/repo::$(date +"%Y-%m-%d_%H:%M:%S") /home/" the shell printed: Failed to create/acquire the lock /path/to/repo/lock.exclusive (timeout) I found a message from Thomas Waldmann, maintainer of Borg: The default waiting time for the repo maybe getting unlocked is rather short (iirc 2 seconds or so), but if you like you can make it wait for longer (e.g. –lock-wait 3600).[1] Break-lock is only for manual and very careful usage, see the docs. --lock-wait 360 (6 minutes) did not work for me; the command kept hanging. I looked at the documentation of Borg for break-lock. The documentation stipulates that no Borg process should be running when using break-lock. ps aux | grep borg found that the process of the borg create was still running. I killed it, i.e. kill pid (to get the pid, run pgrep borg). Then I finally ran break-lock, checking borg break-lock --help for the syntax: $ borg…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.