By lindymills
I had someone build and deploy a project inside of a droplet. I realise that I do not have a backup of the files.
How can I take a copy of the files from the droplet? I have not worked with droplets before, so I am unaware of the process
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @lindymills
It’s pretty easy. You can use scp or rsync in order to do that.
To transfer a file from a remote machine to your local machine, run the following command:
scp -r username@10.10.0.1:/remote/directory/new_image.png /local/directory
you need to change the username and the IP address. To scp to a different port use:
scp -P 2222 -r username@10.10.0.1:/remote/directory/new_image.png /local/directory
Like scp, rsync is used to copy files either to or from a remote host, or locally on the current host.
rsync -avz user@10.10.0.1:/remote/directory/new_image.png /local/directory
To use rsync on different port:
rsync -avz -e "ssh -p $portNumber" user@10.10.0.1:/path/to/files/ /local/path/
Let me know if you have any questions.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.