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

Slash prefix resolves to actual root instead of current working dir #49

Open
nettnikl opened this issue May 18, 2023 · 3 comments
Open

Comments

@nettnikl
Copy link
Contributor

Hi, just encountered an issue with the entries using a slash prefix.
And as there are cases where the excludes are to be employed only for entries in the current root directory (#8), i think this might be worth a look.

Some implementations of rsync type exclude lists (i'm using this) see the leading slash as the actual root path - not the PWD, the path we are executing the backup in.

My workaround is to use ./ instead, e.g. ./Android/Sdk instead of /Android/Sdk or Android/Sdk.

What's your thoughts?

@rubo77
Copy link
Owner

rubo77 commented May 18, 2023

You use restic.

Please try it out, if it works like expected in the standard Debian rsync too.

If yes, please add a pr that adds./ everyone where needed

@nettnikl
Copy link
Contributor Author

I don't have a Debian installation at hand. I did the changes locally for me, so if someone has this issue with a standard Debian system and can confirm this solution, i'll prove the merge request.

@rubo77
Copy link
Owner

rubo77 commented May 19, 2023

You coult try inside a Debian docker container

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

No branches or pull requests

2 participants