New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually creating a lock #2166
Comments
Looks like most of the code is already there in the |
I'd definitely make use of this in a similar use-case. |
If we implement this, I think the command should be modeled after |
I have a similar use case for a feature like this. I'm in the process of migrating from borg to restic and I need to sync my repos to off-site storage for DR purposes and would like to protect against restic updating the repo while the sync process is running. Currently, with borg - the sync process can be run via |
restic never modifies a file after writing it (the full lifecycle is: write temp file, rename to final name, read n times, delete). You can copy a repository while restic is active, by first syncing the |
That is certainly good information to know! I've already cobbled together a somewhat working solution via |
Output of
restic version
restic 0.9.4 compiled with go1.11.4 on darwin/amd64
What should restic do differently? Which functionality do you think we should add?
Add the ability to manually create a write lock.
What are you trying to do?
My restic repository is stored both in the cloud (master) and on a USB disk drive (backup copy). For performance reasons I run the check/prune commands on the USB drive, then upload the changes using rclone. This means that while I'm running check/prune the cloud copy is not locked. It would be great if there was a way to manually create a lock.
The text was updated successfully, but these errors were encountered: