juicedata / juicesync

A tool to move your data between any clouds or regions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add flag to gate copy links

yujunz opened this issue · comments

Similar to rsync

        -L, --copy-links            transform symlink into referent file/dir

Since object storage does not support symlink, when -L is not specified, what can we do with symlink? so I think it should always follow and copy symlink.

One use case I can think of is backing up a file system to object storage and restore from it later.

We may simply transfer the symlink source as the object content if user wants to avoid duplication. At least it can preserve the original information and user may restore the symlinks manually after sync.

Then how do we know which object is a symlink?

No way for sure. But probably guess from the content, that's why I said it should be manual.

Maybe we suspend this flag for now until someone came with a reasonable use case.