53

Sorry for adding to the massive pile of backup-related question, but I could not figure out how to manage backups from existing answers..

I want to backup my VPS setup (think container-defining files, its volumes, and etc configs), but am unsure where to put it. Does keeping these in the VPS itself make sense? If so, how do I create and manage the backup?

Also, I would need a remote copy - what is the good location for this? I wish I could copy to my laptop, but obviously I cannot do that automatically. Should I pay money for a backup? I want to avoid paying lots of money just for backups. Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
  1. Create git repo
  2. Put all config in git repo
  3. Create repo on codeberg
  4. Clone git repo to both VPS and laptop

No extra money needed

[-] tofu@lemmy.nocturnal.garden 7 points 1 year ago

Make sure to not check in secrets in plaintext. git crypt is one way to encrypt secrets before checking them in.

[-] keen@lemmy.world 1 points 1 year ago

Terraform sensitive variables and AWS secrets manager? ^^

I don't like big corporations so I wouldn't do that, but sure

[-] someacnt@sh.itjust.works 3 points 1 year ago

Codeberg sounds like a good way! I was concerned about server config being stored on self-hosted forgejo (which is configured by the very server config), turns out that need not be the case.

[-] AustralianSimon@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Edit: Was asking about the config targetting process for git (not how to use git) and was going to ask an AI to do some googling for me.

[-] fenndev@leminal.space 20 points 1 year ago

Please don't use AI for simple things like this.

The Odin Project has a tutorial on Git Basics and a guide on Setting Up Git. The instructions are roughly the same whether on Github, Codeberg, etc.

Once you have the repository, it's as simple as:

git add .
git commit -m "Updated config"
git push origin main
this post was submitted on 08 Apr 2025
53 points (100.0% liked)

Selfhosted

61425 readers
529 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS