I’ve got a spare drive and a spare slot in my little minipc, and we have too many family pictures duplicated and scattered on drives/clouds all over. I have found up to five copies of some albums! I have spare capacity on my desktop and a spare drive to install on my Proxmoxbox.

My thought is an NFS share on Proxmox synced with e.g. syncthing to the spare drive on my desktop, plus most/all of the pics come from phones and will be in the google/Apple clouds as well. 3-2-1 ?

Is this a bad plan? I’m a dummy, so probably there’s a much simpler way.

  • Creat@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 days ago

    The basic plan seems fine, I’m mostly confused about the technical detail. Why both NFS share and syncthing? Why not just rsync (no NFS, no syncthing)? Usually the point of syncthing is to keep many copies in sync, often in real time, and possibly over network boundaries. Neither syncthing nor rsync need a “share”, as they are using other communication mechanisms.

    Since it’s a 1-way-backup, rsync just send like the simplest solution here? Unless you’re desktop is Windows, then syncing is probably easier, but I would assume it isn’t as a NFS wouldn’t be my first go-to share? As I said, in somewhat confused in the technical setup and reasoning. This includes what proxmox even has to do with it all (except probably running the VM/container of immich).

    • Clay_pidgin@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      Proxmox is my host OS, so I presumed I would need a VM to host the storage. Would you suggest using the (to-be-) Immich VM drive directly? I don’t really know what I need, I guess!

      My goal is to have the phones backup to this box, and to keep a copy on my desktop. You’re right that that one could be rsynced.

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

        Ah ok, let me go over some basic concepts on how that’s usually done. On Proxmox as the hypervisor you create a VM oder LXC (container) for Immich. Unless there’s a very good reason to use a VM, I would always default to an LXC (uses less resurces, smaller on disk, etc). If you want you can make use the community scripts to help you create and install yuor service (Immich in this case). That all gets you up and running. If you want to you can of course install it yourself from the original instructions, if you want to learn or just want to play around with details.

        Since proxmox is your hypervisor, you can make use of it’s mechanisms for (remote) backups. For that you go to Datacenter --> Storage and add some sort of network storage (for example a mounted folder from your desktop) and make sure that in the Content section you have Backup selected. You can now backup that LXC/VM at any time, including when it’s running, to the folder your desktop. Note that Proxmox by default has a local backup location as well, as part of the intial disk setup, so make sure to select the right storage when you run the backup. You can also remove it from the local storage if you don’t want to use that anyway.

        If you want to backup just the images and Immich-data, you can do that from inside the LXC/VM. The most typical setup would be to rsync it using a cron-job or something similar, or just manually when your desktop is available. This only works if your desktop runs an OS that can also run rsync (linux, mac, …, but not Windows). You don’t need a share for this (nfs or smb) as rsync has it’s own network transport (using SSH, usually, might depend on the specific command used). You basically give the command a folder on either machine and it will just sync them (one way, with(out) deleting, both ways, …) but only ever transfer the delta that is needed. Refer to the Immich documentation on what you need to backup to have all the data you need to be able to restore from it.

        Here a similar option would be to use a syncthing client on both the LXC/VM and your desktop and sync using that. This functionally does effectively the same thing as the rsync method (also doesn’t need a share) but using a different protocol. As far as I’m aware, you essentially need a syncthing “host” (or the immich can be the host? not sure) where they sync to/from. If you already have syncthing up and running, this is easier, but if not it’s likely more work to get going.

  • tvcvt@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    Seems like an okay plan. USB drives can be pretty flakey, so it wouldn’t be my long term choice, but it’ll do the trick in a pinch.

    Immich works great for this and stncthing on the PVE host (with versioning enabled) would do a good job saving to your desktop drive. Where does NFS come in in the scheme?

    • Clay_pidgin@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      I don’t have a USB drive - I’m adding another PCIe drive to the Proxmoxbox, so no worries about USB.

      I assumed I would need to use NFS or Samba or something to make the drive accessible across the network, but I gather Immich will do that itself?

      • tvcvt@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

        Gotcha. If your phones can reach Immich over the network (like via the app) then it can take care of backups automatically. You’d just need to bind-mount your storage into the container so Immich can get to it. Syncthing can definitely do a one-way sync to your backup destination.