Linux symlink error

Imre Csatlós    Apr 6 12:26PM 2017 CLI

Linux CLI version: 1.2.1 (Storage used is BackBlaze) Restore process dies on symlinks, when restoring to empty directory.

Example repository with the following files:

drwxr-xr-x 2 root root  3 Apr  6 19:07 ExampleDir
lrwxrwxrwx 1 root root 10 Apr  6 19:05 ExampleSymlink -> ExampleDir
Trying to restore to an empty directory :

servername# duplicacy restore -r 1

Restoring /root/tmp to revision 1
Failed to set the modification time: chtimes /root/tmp/ExampleSymlink: no such file or directory

gchen    Apr 6 8:42PM 2017

Version 1.2.3 should fix this. However, this is more of a workaround than a fix. The chtimes call failed because it attempted to follow the symlink but the referent didn't exist yet. Although the current Go version doesn't support changing the timestamp of a symlink, it is possible to add a function to do that. However, there is no easy way to set other attributes of a symlink, such as permissions, user id and group id. So for now chtimes, chown and chmod are not called on a symlink.

Imre Csatlós    Apr 7 2:08AM 2017

Thank you for the quick response. It works now with 1.2.3. I guess I can live with this workaround, but it's good to keep in mind that symlinks attributes won't be restored. Might cause problems with Apache webservers having "SymLinksIfOwnerMatch" option set.

Log in to comment
Copyright © Acrosync LLC 2016