-
Notifications
You must be signed in to change notification settings - Fork 222
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
azcopy sync does not follow symlinks #718
Comments
Could it be related to #473 ? |
#473 was the incorrect processing of symlinks. That code is now fixed, but its only used in @zezha-msft may be able to comment on whether it is expected to be added for sync one day. |
Hi @ipepe, symbolic links are not yet supported for the sync command, as we have to clarify the round-trip story first, e.g. if the user syncs back from remote to local, how should the files be treated. |
@ipepe perhaps you could share some insights with us? What are your expectations for the round-trip scenario? |
Huh. I'm not sure. My goal with using azcopy was for my offsite backup. Good backup tool should be able to recover from on-site failure. But here's a problem, because data I backup is from docker containers and I treat them like black boxes so I don't know what's inside and how that data is structured. Edit: One of these docker containers with a lot of symlinks is gitlab. You could just take approach to upload data folder from gitlab container and download it back and that container should work (with a little minor detail that gitlab has constant file permission problems). |
Hi @ipepe, so when we download the data back, it's ok to not recreate the symbolic links, right? |
In perfect world, the data sent, should be same as data received. I understand that complexity of this technical challenge can be hard if not impossible to overcome. I personally will archive all my data first using |
Thanks @ipepe for the insights, I'll bring this feature request to our PM. |
Right, copy has --follow-symlinks but not Sync. So, partly this is an issue with our error messages, and this is also somewhat an issue with Sync. @zezha-msft this should just be a case of adding the flag to sync, since it exists within the enumerators. I left this as a TODO during the copy refactoring. |
That, and testing. |
The lack of symmetry here is surprising and I would have classified this as a bug rather than a missing feature. That someone (above) is tarring files with sync suggests that sync is broken. |
For our use case (publishing local files to Azure Files periodically), just following symlinks would be good enough, without a round trip story. Especially when symlinks point to outside the directory structure that is being synced (as a "view" of a much larger filesystem for example). Currently we use |
Any update on this feature request? I have a (Windows) mount point which I would like to be able to copy data from. Ideally I'd like the mount point to simply be considered as a directory so that I could reverse the sync and copy back into a mount point but thats less important as there are other ways to get the data back. |
Which version of the AzCopy was used?
10.3.1
Which platform are you using? (ex: Windows, Mac, Linux)
Docker container (Mac/Linux)
FROM microsoft/dotnet:latest
What command did you run?
azcopy sync /source http://redacted?SASKEY
What problem was encountered?
INFO: Skipping over symlink at /source/redacted because --follow-symlinks is false
How can we reproduce the problem in the simplest way?
Not sure yet. Will try to prepare repository.
Have you found a mitigation/solution?
No. I have tried adding --follow-symlinks but it says that flag is unknown.
The text was updated successfully, but these errors were encountered: