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

symlink support #6

Closed
vlaskine opened this issue Jun 2, 2021 · 4 comments
Closed

symlink support #6

vlaskine opened this issue Jun 2, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@vlaskine
Copy link

vlaskine commented Jun 2, 2021

backupy is a really neat utility, we really would like to use it, especially for our data management on Windows.

The complete blocker for us is that it does not support symlinks (in the way, e.g. robocopy on Windows or cp on Linux routinely do). On Linux, backupy copies the target of a symlink rather than the symlink itself, which also is a blocker for us.

(It is really convenient to use relative symlinks in some types of data and we use lots of them.)

It would be great to have symlink support in backupy - simply back them up verbatim; does not seem to be a large feature.

@elesiuta
Copy link
Owner

Thanks for the feedback, and handling symlinks like that does sound useful. I just implemented it here d41e52e and afa6ff4, and it can be enabled with the --nofollow flag.

I didn't have too much time to test it yet but everything seems to work as intended in the little testing I did. If this is what you had in mind and it works for your use case, I'll publish a new release with this feature soon.

@vlaskine
Copy link
Author

Thank you, really appreciate it - it will enable us to start using backupy, which is a very slick alternative to rsync, especially on windows. (If you test your symlink handling, could you please test it on Windows, too - lots of symlink quirks there.) Looking forward to the release.

@elesiuta
Copy link
Owner

You're welcome! I finally got around to doing some more testing, everything works the same on windows as it does on linux, the only caveat being you may need to run it as an administrator on windows in order to copy symlinks otherwise you may get file not found errors.

This feature is now enabled in the latest version, 1.9.4

@elesiuta elesiuta added the enhancement New feature or request label Jul 30, 2021
@vlaskine
Copy link
Author

Thank you, really appreciate it! A very useful feature that many developers will appreciate on Windows.

I'll check it with backupy, but I think if you enable symlinks on Windows (see e.g. https://community.perforce.com/s/article/3472), you may not need the admin rights to copy symlinks anymore.

By the way, while we were waiting for this feature, we found that a lot of backupy functionality already is available in robocopy (a Windows buildin command line utility). So, you have a competitor.

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

No branches or pull requests

2 participants