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

need option to disable following symlinks on "-R" #164

Open
sitaramc opened this issue Oct 24, 2021 · 0 comments
Open

need option to disable following symlinks on "-R" #164

sitaramc opened this issue Oct 24, 2021 · 0 comments

Comments

@sitaramc
Copy link

sitaramc commented Oct 24, 2021

Hi,

Could there be an option to disable symlinks when running "create" with "-R" please?

I run par2 on a directory which has some critical files. Unfortunately this directory also has some symlinks, whose targets are elsewhere in the file system.

I did not realise par2 was following the symlinks. Sometime later, when I ran a verify, par2 showed some files needing repair.

I made the mistake of not checking exactly what files were reported as broken, and not properly worrying about why they would be broken, and blindly did a repair. It took me a while to realise this had ended up essentially reverting changes to those target files, which as I said were outside the directory I gave to "par2 create".

At the moment my workaround is to include the following in my script, but it would be nice if that were not needed.

    find $@ -type l | tar --remove-files -T - -cvf save.symlinks
    ... run the "par2 c [...]" here...
    tar -xvf save.symlinks && rm save.symlinks
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

1 participant