33
submitted 1 year ago* (last edited 1 year ago) by koinu@lemmy.world to c/selfhosted@lemmy.world

So, this is a rather odd request of a backup solution, but it's kinda what I want right now.

I'm still relatively new to Linux and self-hosting in general

A few years ago, my cousin and I were hosting our own Minecraft server. It had a mod that would create backups of the world folder. It zipped it up, named it "yyyy-mm-dd.zip" and placed it in a backups folder somewhere on the server.

The most important feature that I want is actually the next part. It would allow us to specify how many backups we wanted to keep, and also how frequent we wanted the backup to run.

We set it to backup daily, and keep 14 days of backups. After that, it would delete the oldest one, and make a new backup.

I would like to replicate that functionality! Specify the frequency, but ALSO how many backups to keep.

Idk if it's asking too much. I've tried doing some research, but I'm not sure where to start.

Ideally I'd like something I can host on docker. Maybe connect to a Google account or something so it can be off-site.

I only want to use it for docker config files, compose files, container folders, etc.

I've looked into restic, but it seems it encrypts the backups, and you NEED a working copy of restic to restore? I'd like something simple like a .zip file instead or something, to be able to just download, unzip, and spin up the compose file and stuff.

Sorry for the wall of text, thanks in advance if you have any suggestions!

P.S. I'm pretty sure the upload to Google or some other service would have to be a separate program, so I'm looking into that as well.

Update: I want to thank everyone for your wonderful suggestions. As of right now, I have settled on a docker container of Duplicati, backed up to my Mega.nz account. Last I checked they lowered the storage limit, but I was lucky to snag an account when they were offing 50GB free when you joined, so it's working out well so far. I did have to abandon my original idea, and decided to look for something with deduplication (now that I know what it is!) And encryption.

you are viewing a single comment's thread
view the rest of the comments
[-] MangoPenguin 5 points 1 year ago* (last edited 1 year ago)

I would say since you want simple .zip archives, this could be something to script yourself since it would be fairly easy.

Basically:

  • Zip the server into a dated zip file
  • Check for old zip files and delete
  • Upload zip files using rclone to remote storage (gdrive, etc)
  • Optionally send a notification to discord, telegram, healthchecks.io, or something like that

The downside of zipping backups like this is obviously storage space, every backup takes up the full amount of space of the server, since there's no deduplication or incremental versioning happening.

[-] dpflug@hachyderm.io 4 points 1 year ago

@MangoPenguin
If you're scripting it yourself, https://www.complete.org/dar/ gives a few extra niceties over just zip files or tarballs.
Thank @jgoerzen for the nice summary.
@koinu

[-] koinu@lemmy.world 2 points 1 year ago

I think this might be the way I have to go!

I'm really liking Kopia. Nice GUI and some pretty nice settings. But I don't like the obfuscation. Like you said, I just want the zip files. I think I'll try Borgbackup, then rclone to drive, but I'll also look into just scripting it myself!

Thank you so much :)

this post was submitted on 14 Jul 2023
33 points (100.0% liked)

Selfhosted

40006 readers
514 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