# Update Psono Fileserver

Update guide of the Psono Fileserver

# Rolling-release security support

Psono is maintained as a rolling-release product. All current bug fixes and security corrections are delivered through the latest generally available release. Earlier releases and release branches are not maintained separately and do not receive backported fixes. You should therefore keep your Psono installation current by following the published update procedure. Historical releases may remain available for rollback or archival purposes, but are unsupported and may contain known or subsequently discovered vulnerabilities.

# Preamble

From time to time you want to update to the latest version. If you have a possibility to snapshot your machine, please do so.

# Update with Docker

  1. Update the docker image

    docker pull psono/psono-fileserver:latest
    
  2. Stop old psono-fileserver

    docker stop psono-fileserver
    
  3. Start new psono-fileserver

    docker run --name psono-fileserver-new \
        --sysctl net.core.somaxconn=65535 \
        -v /opt/docker/psonofileserver/settings.yaml:/root/.psono_fileserver/settings.yaml \
        -v /opt/psono-shard:/opt/psono-shard \
        -d --restart=unless-stopped -p 10300:80 psono/psono-fileserver:latest
    
  4. Cleanup

    If everything works you can cleanup your containers with the following commands:

    docker rm psono-fileserver
    docker rename psono-fileserver-new psono-fileserver
    

If anything fails you should be able to start the old docker container again.