How I backed up and booted locally my entire VPS (igerman.cc)
from german@pawb.social to selfhosted@lemmy.world on 03 Jul 00:25
https://pawb.social/post/46566296

Language warning.

Documented my journey backing up my Oracle Cloud server. With their latest changes to always free, I don’t think my instance will last very long. This isn’t a tutorial, there are probably many much better ways to do this.

#selfhosted

threaded - newest

frongt@lemmy.zip on 03 Jul 00:47 next collapse

Yeah that’s a reasonable way to take a backup. I mean I would have recommended an actual backup tool, but dd is perfectly good. Especially since you zeroed as much as you can, since you didn’t have a tool skipping unused blocks.

But the Wi-Fi bit was pretty gross, yeah. Fine to test but never ever for something I actually wanted to use.

TheHolm@aussie.zone on 03 Jul 01:00 next collapse

nfs over the internet is usually bad idea. Network delays is killer for NFS. You can use ssh instead. And add some mbuff for better results.

naeap@sopuli.xyz on 03 Jul 17:42 collapse

I’m completely with you regarding ssh/scp
But I don’t know what you mean with mbuff (guess, memory buffer?)
Haven’t found anything with a quick search, but as I often need ssh/scp to work through customer VPNs, everything that makes that faster or more stable is a very welcomed thing :⁠-⁠)

AbidanYre@lemmy.world on 03 Jul 01:26 next collapse

What changes are they making to always free?

slazer2au@lemmy.world on 03 Jul 06:41 collapse
fightforlife@lemmy.world on 03 Jul 08:06 next collapse

I only use this really to get a free public ipv4. (Since not all clients support ipv6 only) Is there any other free/better way to get an ipv4?

gajahmada@awful.systems on 03 Jul 11:47 next collapse

Way over my head for filthy casual like me, but I get the gist.

I also have OCI instance (it just run wireguard), so what is the proper way of doing this?

german@pawb.social on 03 Jul 13:23 collapse

Not sure, I would guess paying Oracle for another instance, attaching the target boot drive as a separate one to it and backing it up non-live, and to a better storage provider than NFS over Tailscale.

Or someone also said their custom images thing has a download option. That also needs payment.

ramius345@sh.itjust.works on 03 Jul 13:42 next collapse

I’ve done similar things with ssh pipe tunneling and dd ala:

, dd if=/dev/sda | ssh user@host “dd of=/some/other/file/or/disk” ,

Should really do it while the root is ro, but in a pinch this will mostly be ok on a quiet machine.

You might be able to run rsync afterwards to spot check if you are paranoid.

If you didn’t need block level I would have suggested just using rsync or rclone.

irmadlad@lemmy.world on 03 Jul 17:23 collapse

I’ve never had an Oracle Cloud server. However, I do image backups of the server once a month, then test them in a VM, After hearing so much about Borg, I finally pulled the trigger and ran it from the cli for a while. Then I deployed Borg UI, and that’s pretty amazing. I used to use Duplicati, but while Duplicati seems great at making backups, it’s not so keen about doing restores. At least, that’s my experience.