How to update client running in docker?

Hi,

I am using both urbackup server and a client in docker.
urbackup I can update safely due to bind mounted var folder.

However, the client does not seem to provide any mounts - so is it safe to update the docker container to a more recent version and it will somehow still keep the settings, or is there no way to do so (i.e. settings will always be removed when updating the container?)

Thanks

Hey,

for me I never had any issues updating.

This is my compose file:

urbackup:
  image: uroni/urbackup-client:latest
  container_name: urbackup-client
  network_mode: host
  environment:
    - TZ=Europe/Vienna
    - URBACKUP_SERVER_NAME=<server-ip>
    - URBACKUP_CLIENT_NAME=<client-name>
    - URBACKUP_CLIENT_AUTHKEY=xVI2ArPCep
    - PUID=1000
    - PGID=1000
  volumes:
    - ../samba/data:/backup/samba:ro
    - /mnt/data-drive:/backup/data-drive:ro
    - ./postfilebackup:/usr/local/etc/urbackup/postfilebackup # a script that will run when the backup is done
    - ./data:/usr/local/var/urbackup/data/ # cache from the client

Although I don’t know if https://hub.docker.com/r/uroni/urbackup-client is doing the updating, last update was two years ago (but my container is on latest version regardless). It might do the updates internally, so a restart might already update it and you don’t need to pull anything / it may also do updates while it’s running. But would need uroni to confirm what exactly it’s doing.

Hope this helps regardless.

1 Like