Ohboy. Tonight I:

  • installed a cool docker monitoring app called dockge
  • started moving docker compose files from random other folders into one centralized place (/opt/dockers if that matters)
  • got to immich, brought the container down
  • moved the docker-compose.yml into my new folder
  • docker compose up -d
  • saw errors saying it didn’t have a DB name to work with, so it created a new database

panik

  • docker compose down
  • copy old .env file from the old directory into the new folder!
  • hold breath
  • docker compose up -d

Welcome to Immich! Let’s get started…

Awwwwww, crud.

Anything I can do at this point?

No immich DB backup but I do have the images themselves.

EDIT: Thanks to u/atzanteol I figured out that changing the folder name caused this too. I changed the docker folder’s name back to the original name and got my DB back! yay

  • Lem453@lemmy.ca
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    7 months ago

    Awesome, take this close call as a kind reminder from the universe to backup!

    Borg will allow incremental backups from any number of local folders to any number of remote locations. Borgmatic is a wrapper for it that also includes automated incremental borg backups.

    I have a second server that runs this container: nold360/borgserver

    Which works as a borg repository.

    I also buy storage in borgbase and so every hour and incremental setup goes to both.

    The other day I blew away a config folder by accident and restored it with no sweat in 2 mins.