this post was submitted on 02 Nov 2024
35 points (97.3% liked)

Selfhosted

40113 readers
842 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Last night I was writing a script and it made a directory literally named "~" on accident. It being 3am I did an rm -rf ~ without thinking and destroyed my home dir. Luckily some of the files were mounted in docker containers which my user didn't have permission to delete. I was able to get back to an ok state but lost a bit of data.

I now realize I really should be making backups because shit happens. I self host a pypi repository, a docker registry both with containers and some game servers in and out of containers. What would be the simplest tool to backup to Google drive and easily restore?

you are viewing a single comment's thread
view the rest of the comments
[–] april@lemmy.world 11 points 1 week ago* (last edited 1 week ago)

There's different kinds of backups. For this you don't need off-site storage.

For this I set up zfs auto snapshotting which means when I delete stuff it isn't really deleted because a snapshot is still pointing at it until it rolls off the time window.

Both zfs and btrfs can do this but you do need to change the filesystem to use these which can be a lot of work.