-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow multiple as-path
arguments (for multiple sources) in backup
command
#159
Comments
@dimitarvp: Please have a look if this is what you are requesting and feel free to add missing points! |
Not precisely. Let me explain. So I have a script that converts Borg backup repos to other backup programs' repos. I extract Borg backups one by one in e.g. So, original paths:
Paths while working with extracted snapshots (in this case from Borg):
When I backup $HOME with the proper inclusion + exclusion glob files, I get output like this:
BUT when I backup
I can give you the full script and you can see for yourself if you like. It's not secret or anything, I just didn't feel it's generic enough to be shared but I can adapt it slightly and paste it here so you can have a hands-on experience with what I need. And that is: I would like snapshots made from different directories BUT WHICH HAVE EXACTLY THE SAME FILES AS THE ORIGINAL DIRECTORY to yield identical output in Or in other words, I would love the following two commands to produce 100% identical output visually and on the disk:
|
@dimitarvp Sorry, I didn't get it - and I am somehow confused. First, if you run your second command
And you get the same result, if you run with Second, if you do run Third, what don't you like about using |
Sorry, I'm just too over-fixated on what I originally did. Now that you showed the multiple Let me get back to you after trying your suggestions. |
I had a small look into the code to check how easy it is to implement this feature. |
You got me here, one part of my script was not updated and was still using a list of relative backup sources so indeed it was not showing only one path; it was showing all relative paths, just like I wanted. My mistake, thanks for the catch. The part that was showing only one path (
I see, I had no idea that just using I have corrected my RE: the original multiple |
btw this part:
Could be confusing to people: they have to count and compare two lists left to right. Perhaps you should do it like Docker volume mounts i.e.
|
as-path
arguments (for multiple sources)as-path
arguments (for multiple sources) in backup
command
Example using rustic:
rustic backup src1/ src2/ --as-path /path1/ --as-path /path2/
would backup
src1/
as/path1
andsrc2/
as/path2/
.The text was updated successfully, but these errors were encountered: