25

So, I've found that there are a lot of ways to backup a server and anything on it, but I'm somewhat at a loss for what to use to backup everything else to that server.

For most stuff I personally can grab the files I need and back them up using a simple SMB share or rsync or whatever, but for my SO or anyone else who wants to back up is going to have a hard time. That doesn't even cover phones - which you would want to back up fairly regularly since, you know, they get dropped. Sure, I personally can hook up tailscale and split tunnel it, and then set up sync on certain folders, but nobody else I know is going to be able to.

In a perfect world there would be a backup app that had its own little wireguard tunnel built in that could run all the traffic from wherever to my server, and would easy to set up on Android and Windows, but I don't think that exists. So what does everyone use that does exist?

you are viewing a single comment's thread
view the rest of the comments
[-] waspentalive@lemmy.one 2 points 1 year ago* (last edited 1 year ago)

rsync:

#! /usr/bin/sh


TIMESTAMP_LOG="/path/to/logdir/.backuplog"
BACKUP_DEST="server:/path/to/backup/$1"
TIMESTAMP=$(date +"%Y-%m-%d %H:$M:%S")

echo "backup to:$BACKUP_DEST"
echo "Backup: $BACKUP_DEST $TIMESTAMP" >> $TIMESTAMP_LOG
pause
rsync -auvh /path/to/homedir* rhudson@$BACKUP_DEST

This should be called with a name of a target subdirectory in BACKUP_DEST.. mine are rsynca, rsyncb, rsyncc but I will change this soon for day of week based directories.

I also have certificate authentication setup on ssh on my server - that's why no password is needed.

Someday I will set up tailscale between this machine and the server.

this post was submitted on 12 Jul 2023
25 points (100.0% liked)

Selfhosted

39257 readers
162 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