mirror of https://github.com/borgbackup/borg.git
parent
499e07d842
commit
0c3c1e6e3c
|
@ -4924,7 +4924,11 @@ class Archiver:
|
|||
|
||||
# borg with-lock
|
||||
with_lock_epilog = process_epilog("""
|
||||
This command runs a user-specified command while the repository lock is held.
|
||||
This command runs a user-specified command while locking the repository. For example:
|
||||
|
||||
::
|
||||
|
||||
$ borg with-lock /mnt/borgrepo rsync -av /mnt/borgrepo /somewhere/else/borgrepo
|
||||
|
||||
It will first try to acquire the lock (make sure that no other operation is
|
||||
running in the repo), then execute the given command as a subprocess and wait
|
||||
|
|
Loading…
Reference in New Issue