Tag Info

Hot answers tagged

2

It is possible to copy relative symlinks using --links option: -l, --links When symlinks are encountered, recreate the symlink on the destination. Also: Note that --archive implies --links. Example: $ mkdir /tmp/tarsnap-test/ $ cd /tmp/tarsnap-test/ $ mkdir orig backup $ cd orig/ $ mkdir dir $ ln -s dir symlink $ ll total ...


1

I heard that symlinks can't be edited. So do I have to create new symlinks and then overwrite the existing ones? Symlinks can't be edited, that is correct. You can replace symlinks to files in a single operation with the -f option to ln, and if you add -T you can process symlinks to directories in the same way: ln -sfT /data/Tim/dir1 symlink1 will ...



Only top voted, non community-wiki answers of a minimum length are eligible