• 1 Post
  • 108 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle










  • Sounds like something like “git annex” is what you’re looking for?

    I use this to manage all my photos. It lets you add binaries and synchronize then to a backend server (can be local, can be s3, back blaze, etc).

    You can then “drop” files and it ensures a remote exists first. And when you drop the file your still see a symlink of it locally (it’s broken) so that you know it exists.

    My workflow is to add my files, sync them to both a local server and b2, then I drop and fetch folders as i need (need disk space? “git annex drop 2022*”, want to edit some photos? “git annex get 2022_10_01”.








  • This sort of thing can be a bit of a pain.

    chmod -R a+rX /path/to/pictures will grant “world-readable” to things so immich would be able to find them. You’d then want to set something like umask 002 for Nextcloud to create files by default with world readable permission. If it’s running in a container I’m not sure how that is done as I’ve not done it before. You then hope Nextcloud doesn’t set it own file permissions, which it may out of a duty to be more secure.

    If you don’t want files to be world-readable you could create a group that nextcloud and immich share then set group ownership. You may need to set a “sticky” bit to maintain the group ownership and then hope the individual applications don’t override it, which they probably will.

    If you can get both apps to use the same user or group that would probably be best. With the containerized versions of these you might be able to pass in a UID/GID for them to use?


  • atzanteol@sh.itjust.workstoSelfhosted@lemmy.worldBest OS for a NAS
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    9 months ago

    if you’ve to run for hours to get a new one rebuild a second hard drive is highly likely to fail on that time - specially if they’ve the same runtime, model etc.

    If you’re running a 2-disk RAID-1 you have the same problem.

    And I restate - that risk is small. You’re not running a data center where you have thousands of disks to see the effect.


  • “Need” is a strong word. But yes BRTFS RAID 5/6 is unstable but unless you’re only after space efficiency RAID 5/6 shouldn’t be used at all, those shames will put you on the worst position possible if something fails (and also low throughput). When you try to rebuild a RAID 5 with large drives it will probably go into days and you’ll be risking the failure of a second drive and lose everything right there.

    I’ve had a RAID5 for 10+ years, had drives fail and I’ve replaced them. Rebuilds are fine and rare. It’s very unlikely to have two drives fail within a week of each other and I don’t want to only get 1/2 my disk space. RAID6 makes that small chance even smaller. If you’re worried about loss you have backups - RAID is for uptime not recovery.

    You seem to think the way you’ve done things is the one and true right way to do it and that’s not the case.