I'd like to copy the contents of my app folder from my Digital Ocean droplet to my local machine, because I've accidentally removed the app from my local machine and need it back.
I've tried the following, as an example,
scp -r [email protected]:/PATH-TO-APP
Which gave me the following,
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2
How do I copy the app to my local machine? I need to set a destination for scp to work, what destination can i set so it copys to local machine, /User/sites directory?
Try:
scp -r [email protected]:/PATH-TO-APP .
This should copy it to the current directory. You could also do:
scp -r [email protected]:/PATH-TO-APP ~/project
To copy it to a specific folder.
Two tangential observations, by the way:
scp
(granted, this may be a strange case, but just making sure you're aware).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With