Skip to content
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

Respect path in import #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Respect path in import #21

wants to merge 2 commits into from

Conversation

Lirt
Copy link

@Lirt Lirt commented Aug 13, 2020

This MR closes #20.

Path stored during export is changed to be relative and during import, the user specified path is prepended to it.

Changes in vendor are result of go mod vendor.

Signed-off-by: Ondrej Vasko <[email protected]>
Import didn't respect path where user wanted to import the backup.

By saving only relative path in export and prepending the desired path
in import it could be easily respected.

Signed-off-by: Ondrej Vasko <[email protected]>
@adamdecaf
Copy link
Owner

LGTM. Have you tried this on a dev/real instance?

@Lirt
Copy link
Author

Lirt commented Aug 17, 2020

Hello @adamdecaf, yes I'm using it for vault backups (Disaster Recovery) in my company.

I could possibly add some test if that is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import path not used
2 participants