Timeline for How to copy a folder structure and make symbolic links to files?
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 8, 2022 at 9:01 | comment | added | jan-glx | cp -as "$(realpath SOURCE)/" COPY works no matter if SOURCE is relative or absolute | |
| S May 16, 2018 at 16:28 | history | suggested | John Kugelman | CC BY-SA 4.0 | Trailing slash required, otherwise it just makes a single symlink |
| May 16, 2018 at 12:12 | review | Suggested edits | |||
| S May 16, 2018 at 16:28 | |||||
| Feb 8, 2017 at 20:47 | comment | added | KeshV | @roaima saved my day!! | |
| Jan 4, 2017 at 18:05 | comment | added | phyatt | If you want the end symlink to turn out to be a relative path, use this: cp -as "$PWD/src" "path/to/dest" && symlinks -rc "path/to/dest" | |
| Oct 29, 2016 at 6:22 | comment | added | Chris Davies | @richard if SOURCE is a relative path then I think so. Try it and if this doesn't work I suggest you might want to ask a new question. Reference this one by all means. | |
| Oct 28, 2016 at 15:32 | comment | added | ctrl-alt-delor | Can this be done to create relative links? | |
| S Jul 26, 2016 at 21:04 | history | suggested | user905686 | CC BY-SA 3.0 | added note and hint |
| Jul 26, 2016 at 20:39 | review | Suggested edits | |||
| S Jul 26, 2016 at 21:04 | |||||
| Jul 26, 2016 at 16:55 | comment | added | user905686 | @AttitudeMonger No, such a command as cp just creates the links once (as you can see from the result). To update the destination automatically you would have to monitor the source directory for changes. | |
| Jul 13, 2016 at 18:29 | comment | added | NedStarkOfWinterfell | How to make it work if the source directory will be constantly updated with new folders and new files inside them? Will symlinks to them be automatically created in the destination directory in correct folder structure? | |
| Apr 17, 2015 at 7:36 | vote | accept | Antonello | ||
| Apr 17, 2015 at 7:36 | comment | added | Antonello | Works perfect, thank you. Just a note.. SOURCE has to be given with full path (COPY can instead be given in relative terms if one wishes) | |
| Apr 16, 2015 at 23:59 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 | deleted 4 characters in body |
| Apr 16, 2015 at 13:49 | review | Low quality posts | |||
| Apr 16, 2015 at 13:51 | |||||
| Apr 16, 2015 at 13:32 | history | answered | Chris Davies | CC BY-SA 3.0 |