LooonaDocslooona.com ↗

Self-host & build › Self-hosting › Update Looona

Update Looona

Back up, replace Looona's file with the new version, and start it again. On a server, a Mac or Windows.

An update replaces Looona's file with the new version. Your data stays in its folder.

If you signed up on looona.com, Looona is updated for you.

Back up first

In Settings, under Backups, click Back up now. See Backups.

An older version doesn't open a database a newer one has updated. Going back deletes what the update added. Back up before every update.

On a server

For a server set up with the install guide. On an ARM server, write linux-arm64 in place of linux-x64.

  1. Go to Looona's folder

    Terminal
    cd /opt/looona
    
  2. Stop Looona

    The file can't be replaced while it runs.

    Terminal
    sudo systemctl stop looona
    
  3. Download the new version

    Terminal
    sudo curl -L https://cdn.looona.fr/latest/looona-linux-x64.zip -o looona.zip
    
  4. Unzip it

    -o replaces what's there without asking.

    Terminal
    sudo unzip -o looona.zip
    
  5. Put it in place of the old one

    The new file takes the name looona.

    Terminal
    sudo mv looona-linux-x64 looona
    
  6. Delete the zip

    Terminal
    sudo rm looona.zip
    
  7. Give it back to Looona

    The new file belongs to Looona's user again, and can run.

    Terminal
    sudo chown looona:looona looona && sudo chmod +x looona
    
  8. Start Looona

    At start, it updates the database for the new version on its own.

    Terminal
    sudo systemctl start looona
    

On a Mac or Windows

  1. Stop Looona

    Press Ctrl+C in its window, or close it.

  2. Download the new version

    From the same address as the first time. See On a Mac or Windows.

  3. Replace the old file

    Unzip the new one, and move it into Looona's folder, in place of the old one. Leave the rest of the folder as it is: your data is there.

  4. Start Looona

    As the first time, with serve. At start, it updates the database for the new version on its own.