Before letting you know how you can backup your website locally, I’ll recommend using the DigitalOcean backup solution, it’s just for such cases. There are two types:
Backups are automatically-created disk images of Droplets. Enabling backups for Droplets enables system-level backups at weekly intervals, which provides a way to revert to an older state or create new Droplets.
You can read more about them here :
Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.
You can read more about them here:
In your case, maybe the Snapshots is the better option.
Anyway, to download your website over locally, you’ll need to have SSH connection. Maybe if you are on Windows, you can use Putty.
To transfer a file from a remote machine to your local machine, run the following command:
scp -r email@example.com:/remote/directory/ /local/directory
you need to change the username and the IP address. To scp to a different port use:
scp -P 2222 -r firstname.lastname@example.org:/remote/directory/ /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 email@example.com:/remote/directory/new_image.png /local/directory
To use rsync on different port:
rsync -avz -e "ssh -p $portNumber" firstname.lastname@example.org:/path/to/files/ /local/path/
Now, you need to find where your Magento is stored as well and copy the files from there to your local machine.