-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix: cli command to unlock the autorestic running value #329
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
super cool, thanks :) |
That is a good idea. I modified the source code a bit so that the running processes will be checked. In case there is an autorestc process running, the user will get warned and has the option to abort or write No process running ❯ go run main.go unlock
Using config: /home/user/.autorestic.yaml
Using lock: /home/user/.autorestic.lock.yml
Unlock successful Process running, aborting with no ❯ go run main.go unlock
Using config: /home/user/.autorestic.yaml
Found autorestic processes:
root 61997 0.0 0.0 1236056 7472 pts/7 Sl+ 20:45 0:00 autorestic --ci backup -a
Another autorestic instance is running. Are you sure you want to unlock? (yes/no): no
Unlocking aborted. Processing running, continue with yes ❯ go run main.go unlock
Using config: /home/user/.autorestic.yaml
Found autorestic processes:
root 61997 0.0 0.0 1236056 7472 pts/7 Sl+ 20:45 0:00 autorestic --ci backup -a
Another autorestic instance is running. Are you sure you want to unlock? (yes/no): yes
Using lock: /home/user/.autorestic.lock.yml
Unlock successful |
@rwxd @cupcakearmy
|
Hi, thanks for the awesome tool.
I had the case where the
.autorestic.lock.yml
had therunning
key totrue
but there was no instance running.This pull request adds the
unlock
command which just unlocks. Additionally a page to the documentation is added.Example:
I don't know if "fix:" is the right commit, I can rewrite the commit with "feat:" in case it fits better.