Skip to Content
Coinio

Update, backup and uninstall

Keep Coinio current, back up the data volume and remove it cleanly.

All state is in /data. The examples use the names from the install script and the Docker page: container coinio, volume coinio-data. With Compose the data is the data folder instead.

Update

Database migrations run by themselves when the new version starts.

Pull the new image, remove the container and start it again with the same command you installed with. The volume is kept.

docker pull ghcr.io/yakupemreyerli/coinio:latest
docker rm -f coinio
docker run -d --name coinio --restart unless-stopped \
  -p 8080:8080 -v coinio-data:/data \
  ghcr.io/yakupemreyerli/coinio:latest

If you installed with the script, run the script again instead of the last command. Add your -e settings back if you used any.

Back up

Stop the container so the database is not being written, archive /data, start it again:

docker stop coinio
docker run --rm -v coinio-data:/data -v "$PWD":/backup alpine \
  tar czf /backup/coinio-backup.tar.gz -C /data .
docker start coinio

This writes coinio-backup.tar.gz to the current folder. It holds the database (including API keys, the Telegram token and sessions) and the logos, so store it like a password.

With Compose, archive the folder directly: docker compose stop, tar czf coinio-backup.tar.gz -C data ., docker compose start.

Restore

This replaces everything in the volume with the backup:

docker stop coinio
docker run --rm -v coinio-data:/data -v "$PWD":/backup alpine \
  sh -c 'rm -rf /data/* && tar xzf /backup/coinio-backup.tar.gz -C /data'
docker start coinio

tar keeps the file owner (UID 1000) from the archive, so the app can write to the restored files.

SELinux

On Fedora, RHEL and other SELinux hosts, Docker cannot write to a folder from your home directory unless you add :z to the bind mount: -v "$PWD":/backup:z.

Uninstall

docker rm -f coinio
docker volume rm coinio-data

The second line deletes your data; take a backup first. If you used the install script with a tunnel, also remove coinio-tunnel and the network:

docker rm -f coinio-tunnel
docker network rm coinio

With Compose: docker compose down, then delete the folder. To remove the image as well: docker image rm ghcr.io/yakupemreyerli/coinio:latest.

Edit on GitHub

On this page