I’m planning on setting up a nas/home server (primarily storage with some jellyfin and nextcloud and such mixed in) and since it is primarily for data storage I’d like to follow the data preservation rules of 3-2-1 backups. 3 copies on 2 mediums with 1 offsite - well actually I’m more trying to go for a 2-1 with 2 copies and one offsite, but that’s besides the point. Now I’m wondering how to do the offsite backup properly.

My main goal would be to have an automatic system that does full system backups at a reasonable rate (I assume daily would be a bit much considering it’s gonna be a few TB worth of HDDs which aren’t exactly fast, but maybe weekly?) and then have 2-3 of those backups offsite at once as a sort of version control, if possible.

This has two components, the local upload system and the offsite storage provider. First the local system:

What is good software to encrypt the data before/while it’s uploaded?

While I’d preferably upload the data to a provider I trust, accidents happen, and since they don’t need to access the data, I’d prefer them not being able to, maliciously or not, so what is a good way to encrypt the data before it leaves my system?

What is a good way to upload the data?

After it has been encrypted, it needs to be sent. Is there any good software that can upload backups automatically on regular intervals? Maybe something that also handles the encryption part on the way?

Then there’s the offsite storage provider. Personally I’d appreciate as many suggestions as possible, as there is of course no one size fits all, so if you’ve got good experiences with any, please do send their names. I’m basically just looking for network attached drives. I send my data to them, I leave it there and trust it stays there, and in case too many drives in my system fail for RAID-Z to handle, so 2, I’d like to be able to get the data off there after I’ve replaced my drives. That’s all I really need from them.

For reference, this is gonna be my first NAS/Server/Anything of this sort. I realize it’s mostly a regular computer and am familiar enough with Linux, so I can handle that basic stuff, but for the things you wouldn’t do with a normal computer I am quite unfamiliar, so if any questions here seem dumb, I apologize. Thank you in advance for any information!

  • fmstrat@lemmy.nowsci.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    If you use ZFS this becomes easy, because you can do incremental backups at the block level.

    I have my home lab server and do snapshots and sends to a server at my fathers house. Then I also have an external drive that I snapshot to as well.

  • dieTasse@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    If you are gonna go for TrueNAS, try Storj with TrueNAS Cloud task. TrueNAS made a partnership with Storj and the price is very good. https://www.truenas.com/truecloud-backup/

    TlDr; The data is encrypted with restic and sent to Storj S3 storage that is further fragmenting it (and encrypting it too - so double encryption) into multiple pieces (with redundancy) and storing on other peoples TrueNASes (you can also provide your unused space btw and gain some small money back).

    I am in process of setting this up (already run a working test backup) and I didn’t find anything that’s better than this integrated solution. Very cool!

  • pHr34kY@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    6 days ago

    I have a job, and the office is 35km away. I get a locker in my office.

    I have two backup drives, and every month or so, I will rotate them by taking one into the office and bringing the other home. I do this immediately after running a backup.

    The drives are LUKS encrypted btrfs. Btrfs allows snapshots and compression. LUKS enables me to securely password protect the drive. My backup job is just a btrfs snapshot followed by an rsync command.

    I don’t trust cloud backups. There was an event at work where Google Cloud accidentally deleted an entire company just as I was about to start a project there.

  • Bassman1805@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 days ago

    The easiest offsite backup would be any cloud platform. Downside is that you aren’t gonna own your own data like if you deployed your own system.

    Next option is an external SSD that you leave at your work desk and take home once a week or so to update.

    The most robust solution would be to find a friend or relative willing to let you set up a server in their house. Might need to cover part of their electric bill if your machine is hungry.

  • merthyr1831@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 days ago

    Rsync to a Hetzner storage box. I dont do ALL my data, just the nextcloud data. The rest is…linux ISOs… so I can redownload at my convenience.

  • doodledup@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    7 days ago

    I’m just skipping that. How am I going to backup 48TB on an off-site backup?!

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      7 days ago

      Only back up the essentials like photos and documents or rare media.
      Don’t care about stuff like Avengers 4K that can easily be reaquired

      • dave@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        6 days ago

        a “poor mans” backup can be useful for things like this, movie/tv/music collections, and will only be a few MB instead of TB.

        if things go south at least you can rebuild your collection in time. obviously if theres some rare files that were hard to get then you can backup those ones, but even at that it will probably still be a small backup

      • nfreak@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        6 days ago

        This is what I’m currently doing, I use backblaze b2 for basically everything that’s not movies/shows/music/roms, along with backing up my docker stacks etc to the same external drive my media’s currently on.

        I’m looking at a few good steps to upgrade this but nothing excessive:

        • NAS for media and storing local backups
        • Regular backups of everything but media to a small USB drive
        • Get a big ass external HDD that I’ll update once a month with everything and keep in my storage unit and ditch backblaze

        Not the cleanest setup but it’ll do the job. The media backup is definitely gonna be more of a 2-1-Pray system LMAO but at least the important things will be regularly taken care of

      • doodledup@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        7 days ago

        In theory. But I already spent my pension for those 64TB drives (raidz2) xD. Getting off-site backup for all of that feels like such a waste of money (until you regret it). I know it isn’t a backup, but I’m praying the Raidz2 will be enough protection.

        • SayCyberOnceMore@feddit.uk
          link
          fedilink
          English
          arrow-up
          9
          ·
          7 days ago

          Just a friendly reminder that RAID is not a backup…

          Just consider if something accidentally overwrites some / all your files. This is a perfectly legit action and the checksums will happily match that new data, but your file(s) are gone…

          • doodledup@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            6 days ago

            I do weekly ZFS snapshots though and I’m very diligent on my smart tests and scrubs. I also have a UPS and a lot of power surge protection. And ECC Ram. It’s as safe as it gets. But having a backup would definitely be better, you’re right. I just can’t afford it for this much storage.

        • cwista@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          6 days ago

          The cost of storage is always more than double the sticker price. The hidden fee is that you need a second and maybe a third one and a system to put it all in. Most our operational lab cost is backups. I can’t replace the data if it’s lost.

        • PeriodicallyPedantic@lemmy.ca
          link
          fedilink
          English
          arrow-up
          6
          ·
          7 days ago

          Do you have to back up everything off site?

          Maybe there are just a few critical files you need a disaster recovery plan for, and the rest is just covered by your raidz

          • doodledup@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 days ago

            I do backup like 1TB off-site. But it would still be a major blow if I lost the rest of it. I just try to live with that risk I’m fully aware exists.

    • Censed@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      You ought to only be 3-2-1ing you irreplaceable/essential files like personal photos, videos, and documents. Unless you’re a huge photography guy i can believe that takes up 48TB

    • Carol2852@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 days ago

      Just recently moved from an S3 cloud provider to a storagebox. Prices are ok and sub accounts help clean things up.

  • iknowitwheniseeit@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 days ago

    I just use restic.

    I’m pretty sure it uses checksums to verify data on the backup target, so it doesn’t need to copy all of the data there.

  • AustralianSimon@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 days ago

    I have two large (8 Bay) Synology NAS. They backup certain data between each other and replicate internally and push to Back blaze. $6/mo.

  • lightnsfw@reddthat.com
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    6 days ago

    It’s not all my data but I use backblaze for offsite backup. One of the reasons I can’t drop Windows. I don’t have anywhere I travel often enough to do a physical drop off and when I tried setting a file server up at my parents but they would break shit by fucking with their router every time they had an internet outage or moving it around (despite repeated being told to call me first).

      • sudneo@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        6 days ago

        Objdct storage is anyway something I prefer over their app. Restic(/rustic) does the backup client side. B2 or any other storage to just save the data. This way you also have no vendor lock.

    • kalpol@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Same - can sync snapshots from Truenas to Backblaze.

      If you want to get real fancy you could stash an N40L cube server at your mom’s house where she will never find it and VPN back to your local network and replicate snapshots to it

  • TrumpetX@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    Look into storj and tardigrade. It’s a crypto thing, but don’t get scared. You back up to S3 compatible endpoints and it’s super cheap (and pay with USD credit card)

  • Jimmycakes@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    7 days ago

    I use asustor Nas, one at my house south east US, one at my sister’s house northeast us. The asus os takes care of the backup every night. It’s not cheap but if you want it done right.

    Both run 4 drives in raid 5. Pictures backup to the hdd and a raid 1 set of nvme in the nas. The rest is just movies and TV shows for plex so I don’t really care about those. The pictures are the main thing. I feel like that’s as safe I can be.

  • thecoffeehobbit@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    I have an external storage unit a couple kilometers away and two 8TB hard drives with luks+btrfs. One of them is always in the box and after taking backups, when I feel like it, I detach the drive and bike to the box to switch. I’m currently researching btrbk for updating the backup drive on my pc automatically, it’s pretty manual atm. For most scenarios the automatic btrfs snapshots on my main disks are going to be enough anyway.