check --repair for an specific repository #446
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#446
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I deleted some of my files of one repo by mistake, was able to restore them, but for some reason the repo has some problems.
I wanted to do something like "borgmatic check --repository /mnt/myrepo --repair" but obviously it doesn't work.
Steps to reproduce (if a bug)
I would like this feature on the cli to be added if possible please.
Expected behavior (if a bug)
Expected to be able to do a check --repair to one specific repository.
Other notes / implementation ideas
On the documentation I don't see a way to run borgmatic check for an specific repo, supposed I have more than repo, using the guide "Make per-application backups".
Is there any way to include a way to specify on the cli with borgmatic an specific repository?
If not, can you add that as a feature?
Environment
borgmatic version: [1.5.12]
borgmatic installation method: [Docker container]
Borg version: [1.1.15]
Python version: [3.8.10]
How do you maintain your multiple, per-app backups? If using individual YAML files, like in my case, you should be able to 1. make BorgMatic run with that config file and hence repo only and 2., issue arbitrary Borg commands as well. Look at the following example:
Thanks for your example.
I tried to do it but it gives me this error, maybe it is because I'm running it on a docker container ?
So, after seeing the error with
borgmatic --config location/.yaml borg info
, I decided to try it without the "borg" and it is working.Can you tell me why I'm not able to run arbitrary Borg commands ? is it because of the version I'm running?
Would have been of help if you had provided the version your are running. :-) But yes, to me it looks like your version is simply too old.
borg
is not part of the valid arguments printed in your screenshot.https://torsion.org/borgmatic/docs/how-to/run-arbitrary-borg-commands/
Version of borgmatic and borg is on the ticket, at the beginning :-)
version 1.5.12
That version is like 8 months old, do you think that it, or it might be something with the docker from https://hub.docker.com/r/b3vis/borgmatic/
Seems to have been introduced with 1.5.15:
cf8882f2bc
Can confirm! The
borgmatic borg
action was added in borgmatic 1.5.15. So upgrading would certainly be a decent work-around right now. But I agree that a--repository
flag to thecheck
action would be helpful.And thanks @ams_tschoening for jumping in on this ticket.
Thank you both, I'll upgrade asap.
Reopening for the
--repository
flag oncheck
! That still seems useful to me, even if there's a work-around.Related/overlapping ticket: #564.
@witten so this can be closed now that #564 is closed?
Yes, thank you!