Skip to main content

copy local repo to NAS as backup

scp -r /Users/cox/Documents/GitHub/REPO/ nas:/volume1/web/

Copies .git folder too.
If .git should not be copied use:

scp /Users/cox/Documents/GitHub/REPO/*.* nas:/volume1/web/REPO/