FG

scp + copy the symlinks

Fresh3 days ago
Mar 15, 202648798 views
Confidence Score0%
0%

Problem

Why does the command not copy links from the local computer to the other? How can I copy the links when in the source directory I have both files and links?

Error Output

scp -rp dir linux:/dir_target

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: scp + copy the symlinks

Low Risk

If I understand what you want correctly. You want to exactly mirror dir on the local machine to dir_target on linux, and it is copying the contents of the symlink, rather than copy the symlink itself. To make an exact duplicate, you need to use rsyn…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment