DigitalOcean/image migration

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< DigitalOcean
Revision as of 12:31, 6 September 2019 by Woozle (talk | contribs) (Created page with "In order to maintain backups of disk images ''without'' having to pay DigitalOcean for them monthly, it would be useful to be able to download them and then later upload any t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In order to maintain backups of disk images without having to pay DigitalOcean for them monthly, it would be useful to be able to download them and then later upload any that need to be used again.

At the present time, downloading does not seem to be possible; the only instructions I have found so far not only don't work, but couldn't even work in theory as I understand it -- in that they use sshfs to mount the volume's filesystem locally, then try to use dd (a volume-copying tool) to do the copying.

Tentatively, uploading/restore is fully supported, although this is still limited to images that are based on a Linux-like filesystem.

Notes

Backup

I got an error with the command they suggested, and modified it to this:

  • sudo sshfs -o allow_other root@xxx.xxx.xxx.xxx:/ /mnt/droplet
root@statler:/mnt# sudo sshfs -o allow_other,defer_permissions root@157.245.133.24:/ /mnt/droplet
fuse: unknown option `defer_permissions'
root@statler:/mnt# sudo sshfs -o allow_other root@157.245.133.24:/ /mnt/droplet

...but then this didn't work:

dd if=/mnt/droplet of=tootcat2.hypertwins.net-1523357095826-abandoned
dd: error reading '/mnt/droplet': Is a directory

Restore

Possibly the "custom images" feature is the way to go?