I’m going to make a backup of 2TB SSD today. I will use clonezilla mainly because that’s all I know. But do you recommend any other ways for any reason?

I want to keep the process simple and easy. And I will likely take backup once a month or so repeatedly. It doesn’t have to be ready all the time. If you need more clarification, ask away.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    4 hours ago

    dd if=/dev/sda0 conv=sync,noerror bs=128K status=progress | gzip -c file.gz

    You can add an additional pipe in there if you need to ssh it to another machine if you don’t have room on the original.

    • HubertManne@moist.catsweat.com
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 hours ago

      I did a thing like this but with a ios command that wrote the disk to image and piped it to ssh but then piped it back to a waiting drive. It was great as you could pull the disk and boot right off it. Do you know if that can be done with dd?

  • mbirth
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 hours ago

    Does the data change a lot? Does it need to be a block-based backup (e.g. bootable)? Otherwise, you could go with rsync or restic or borg to only refresh your backup copy with the changed files. This should be far quicker than taking a complete backup of the whole SSD.

    • tizOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 hours ago

      Thank you for the insight. Changes are incremental I suppose. You are correct that it’s more efficient. But I kind of want to back up the whole disk since I can keep a bootable drive with it right?

  • taiidan@slrpnk.net
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    btrfs or zfs send/receive. Harder to do if already established, but by far the most elegant, especially with atomic snapshots to allow versioning without duplicate data.

    • tizOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 hours ago

      Thanks guys. I went with Rescuezilla in the end. So far so good.

    • tizOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      6 hours ago

      This is something I should consider!

  • drkt@scribe.disroot.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    6 hours ago

    My method requires that the drives be plugged in at all times, but it’s completely automatic.

    I use rsync from a central ‘backups’ container that pulls folders from other containers and machines. These are organized in

    /BACKUPS/(machine/container)_hostname/...

    The /BACKUPS/ folder is then pushed to an offsite container I have sitting at a friends place across town.

    For example, I backup my home folder on my desktop which looks like this on the backup container

    /BACKUPS/Machine_Apollo/home/dork/

    This setup is not impervious to bitflips a far as I’m aware (it has never happened). If a bit flip happens upstream, it will be pushed to backups and become irrecoverable.

    • tizOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      I see. This is more of a file system backup right? Do you recommend it over full disk backup for any reason? I can think of saving space.

      • drkt@scribe.disroot.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        6 hours ago

        I recommend it over a full disk backup because I can automate it. I can’t automate full disk backups as I can’t run dd reliably from a system that is itself already running.

        It’s mostly just to ensure that I have config files and other stuff I’ve spent years building be available in the case of a total collapse so I don’t have to rebuilt from scratch. In the case of containers, those have snapshots. Anytime I’m working on one, I drop a snapshot first so I can revert if it breaks. That’s essentially a full disk backup but it’s exclusive to containers.

        edit: if your goal is to minimize downtime in case of disk failure, you could just use RAID

        • tizOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 hours ago

          I’m on a similar boat except I might have less time resource available in the future cause I’m getting a job.

          Hopefully I could automate full disk backup because if something like Immich breaks, I can just load up from the backup drive. My family also use the services so… I think it’s great you brought up RAID but I believe when Immich or any software mess things up it’s not recoverable right?

          • drkt@scribe.disroot.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            5 hours ago

            I think it’s great you brought up RAID but I believe when Immich or any software mess things up it’s not recoverable right?

            RAID is not a backup, no. It’s redundancy. It’ll keep your service up and running in the case of a disk failure and allow you to swap in a new disk with no data loss. I don’t know how Immich works but I would put it in a container and drop a snapshot anytime I were to update it so if it breaks I can just revert.

    • tizOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      First time hearing of this. Any particular reasons?

      • mortimer@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 hours ago

        The GUI is intuitive. It boots initially into an OS with a bunch of useful tools. The disk cloning software is straightforward and it works perfectly - I can vouch for this since I’ve had to resort to it on a couple of occasions restoring my system from the back up images. It’s also not complicated like Clonezilla.

        • tizOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          Thank you! Great info. After some reading, I went with Rescuezilla which is yet another GUI for Clonezilla. I might give the foxclone next time!

    • tizOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      6 hours ago

      Based. Yes. It is an option.