There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

francisco_1844 ,

Restic for backup - can send backups to S3 and SFTP amongst other target options.

There are S3 (block storage) compatible services, such as Backblaze’s B2, which are very affordable for backups.

0110010001100010 ,

Local backup to my Synology NAS every night which is then replicated to another NAS at my folks house through a secure VPN tunnel. Pretty simple and easy to deploy.

Greidlbeere OP ,

Sounds good. What do you use for replication?

neardeaf ,

Most likely Hyper Backup & Hyper Vault, two applications built into Synology’s DSM software that runs on their NAS devices.

0110010001100010 , (edited )

Just simple old rsync. The nas at the far-end is an old QNAP I had lying around.

jakoma02 ,

So far I have had good experience with kopia. But it is definitly less battle-tested than the other alternatives and I do not use it for too critical stuff yet.

thejevans ,
@thejevans@lemmy.ml avatar

Thanks! I just started setting up NixOS on my laptop and I’m planning to use it for servers next. Saving this for later!

sam ,
@sam@lemmy.ca avatar

raid1 + data duplication

Photos, videos, music, documents, etc… are available on multiple devices using SyncThing.

Greidlbeere OP ,

Never tried syncthing. I will look into it.

ErwinLottemann ,

RAID is not a backup. I'm not sure about syncthing, does that count as backup? Have you tried restoring from it?

sam ,
@sam@lemmy.ca avatar

Sounds like pedantry to me.

tables ,

It's not pedantry, it's just that RAID and instant data duplication or synchronization aren't meant to protect you from many of the situations in which you would need a backup. If a drive fails, you can restore the information from wherever you duplicated the data to. If, however, your data is corrupted somehow, the corruption is just duplicated over and you have no way to restore the data to a state before the corruption happened. If you accidentally delete files you didn't want to delete, the deletion is replicated over and, again, no way to restore them. RAID wasn't built to solve the problems a backup tries to solve.

sam ,
@sam@lemmy.ca avatar

Well I guess my personal definition of backup is wrong.

lynny ,
@lynny@lemmy.world avatar

If a program screws up and crashes while writing data to your drive, it can take out more than just the data it was dealing with. RAID will simply destroy data on both your drives at the same time, making any data recovery impossible.

pirate526 ,
@pirate526@kbin.social avatar

I run a second Unraid server with a couple of backup-related applications, as well as Duplicati. I have my main server network mounted and run scheduled jobs to both copy data from the main pool to the backup pool, as well as to Backblaze. Nice having the on-site backup as well as the cloud based.

I occasionally burn to 100gb blurays as well for the physical backup.

DataDreadnought ,
@DataDreadnought@lemmy.one avatar

I doubt your using NixOS so this config might seem useless but at its core it is a simple systemd timer service and bash scripting.

To convert this to another OS you will use cron to call the script at the time you want. Copy the part between script=“” and then change out variables like the location of where docker-compose is stored since its different on NixOS.

Let me explain the script. We start out by defining the backupDate variable, this will be the name of the zip file. As of now that variable would be 2023-07-12. We then go to each folder with a docker-compose.yml file and take it down. You could also replace down with stop if you don’t plan on updating each night like I do. I use rclone to connect to Dropbox but rclone supports many providers so check it out and see if it has the one you need. Lastly I use rclone to connect to my Dropbox and delete anything older than 7 days in the backup folder. If you end up going my route and get stuck let me know and I can help out. Good luck.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">systemd = {
</span><span style="color:#323232;">      timers.docker-backup = {
</span><span style="color:#323232;">        wantedBy = [ "timers.target" ];
</span><span style="color:#323232;">        partOf = [ "docker-backup.service" ];
</span><span style="color:#323232;">        timerConfig.OnCalendar= "*-*-* 3:30:00";
</span><span style="color:#323232;">      };
</span><span style="color:#323232;">      services.docker-backup = {
</span><span style="color:#323232;">        serviceConfig.Type = "oneshot";
</span><span style="color:#323232;">        serviceConfig.User = "root";
</span><span style="color:#323232;">        script = ''
</span><span style="color:#323232;">        backupDate=$(date  +'%F')
</span><span style="color:#323232;">        cd /docker/apps/rss
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose down
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/apps/paaster
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose down
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/no-backup-apps/nextcloud
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose down
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/apps/nginx-proxy-manager
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose down
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/backups/
</span><span style="color:#323232;">        ${pkgs.zip}/bin/zip -r server-backup-$backupDate.zip /docker/apps
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/apps/nginx-proxy-manager
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose pull
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose up -d
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/apps/paaster
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose pull
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose up -d
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/apps/rss
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose pull
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose up -d
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/no-backup-apps/nextcloud
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose pull
</span><span style="color:#323232;">        ${pkgs.docker-compose}/bin/docker-compose up -d
</span><span style="color:#323232;">
</span><span style="color:#323232;">        cd /docker/backups/
</span><span style="color:#323232;">        ${pkgs.rclone}/bin/rclone copy server-backup-$backupDate.zip Dropbox:Server-Backup/
</span><span style="color:#323232;">        rm server-backup-$backupDate.zip
</span><span style="color:#323232;">        ${pkgs.rclone}/bin/rclone delete --min-age 7d Dropbox:Server-Backup/
</span><span style="color:#323232;">        '';
</span><span style="color:#323232;">      };
</span><span style="color:#323232;">    };
</span><span style="color:#323232;">
</span>
thejevans ,
@thejevans@lemmy.ml avatar

Thanks! I just started setting up NixOS on my laptop and I’m planning to use it for servers next. Saving this for later!

thisbenzingring ,

veeam is pretty simple and powerful, the community version is free if you are only using it for a small environment (CPU cores is what it counts)

I havn’t used it for docker but it says it is supported

vairfoley ,
@vairfoley@reddthat.com avatar

I use Veeam to backup shares on my NAS to rotated external drives. I also backup a Linux server.

NotSpez ,

Duplicati. Works like a charm. Supports practically every backend (S3, backblaze, one drive, Google, storj, sia, even Tahoe!

stown ,
@stown@sedd.it avatar

I host everything on Proxmox VM’s so I just take daily snapshots to my NAS

Wxfisch ,
@Wxfisch@lemmy.world avatar

Backblaze B2. Any software that is S3 compatible can use B2 as the target and it’s reasonably priced for the service. I backup all the PCs and services to a Synology NAS and then backup that to B2 (everything except my Plex media, that would be pricy and it’s easy enough to re-rip from disc if needed).

hitagi ,

A lot of services have some kind of way to create backup files. I have cronjobs doing that daily then uploading it to some cloud storage with rclone.

BitSound ,

I’ve been using Borg to back my stuff up. It gets backed up to rsync.net, which has good support for Borg:

www.rsync.net/products/borg.html

If you’re good enough at computers, you can even set up a special borg account with them that’s cheaper and has no tech support.

ErwinLottemann ,

I was a rsync.net user for many years and recently switched to borgbase, because of how easy it is to manage multiple backup targets.

tables ,

I'm on the same boat right now, borg and borgbase.

BitSound ,

That looks cool, and they’ve got some other nifty looking things like www.pikapods.com. Any idea how stable the company is? I partially like rsync.net because it’s pretty unlikely to just disappear someday.

neardeaf ,

Seconding this. On my unRAID host, I run a docker container called “Vorta” that uses Borg as its backend mechanism to backup to my SynologyNAS over NFS. Then on my Syno, run two backup jobs using HyperBackup, one goes to my cousin’s NAS connected via a Site-to-Site OpenVPN connection on our edge devices (Ubiquity Unifi Security Gateway Pro <-> UDM Pro), the other goes to Backblaze B2 Cloud Storage.

OP, let me know if you need any assistance setting something like this up. Gotta share the knowledge over here on Lemmy that we’re still used to searching evil Reddit for.

PlutoniumAcid ,
@PlutoniumAcid@lemmy.world avatar

My brother and I both run an USG. Would love to learn from you how to set up site2site VPN!

neardeaf ,

Niiiice, quick question, are both of y’all running the latest UniFi Controller version & using the new WebUI view layout?

PlutoniumAcid ,
@PlutoniumAcid@lemmy.world avatar

His gear is v7 (Unifi and also Synology DSM) and I am still on v6 because I didn’t have a good reason to upgrade. If it works, don’t fix it, you know? Feature-wise there the same anyway just different UI. But sure, give me a good reason to upgrade, and I will :)

stridemat ,

Love Borg and the associated docker containers and the like. Really is set and forget!

RxBrad ,

Rsnapshot to an external USB drive.

Probably not the best, but it works for my little 6TB OpenMediaVault server with some Docker thrown in.

ablackcatstail ,
@ablackcatstail@lemmy.goblackcat.com avatar

I use rsync with an offsite backup.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines