Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active August 13, 2023 20:34
Show Gist options
  • Save ErykDarnowski/985c2027ff7f81df8458ae1c8173382d to your computer and use it in GitHub Desktop.
Save ErykDarnowski/985c2027ff7f81df8458ae1c8173382d to your computer and use it in GitHub Desktop.
How to copy both hidden and visible files from the current folder using `scp`

How to copy both hidden and visible files from the current folder using scp

# Local -> Remote:
scp -r <local_path> <host>@<ip>:<remote_path>

# Remote -> Local:
scp -r <host>@<ip>:<remote_path> <local_path>

*In my case (using a Synology NAS) on some Linux distros I either have to or can't use /volume1 before the rest of the path cause I'll get an access denied error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment