oberger
February 22, 2026, 10:50am
1
When using the Docker container uroni/urbackup-server, it seems that logs are logged under /var/log/urbackup.log.
I suspect that this won’t ever be rotated/removed, and keeps growing (1.4 GB currently).
Is there any suggested way to cleanup these under docker (I know how to attach and perform shell instructions inside the container)
Thanks in advance.
uroni
February 22, 2026, 12:08pm
2
It does have build-in log file rotation with --rotate-filesize . Should possibly be added to GitHub - uroni/urbackup-server-docker: A multiarch docker image for a UrBackup server . PR welcome.
oberger
February 22, 2026, 12:59pm
3
AFAIU, unless specified, the value is std::string::npos on Linux i.e. no limit ?… so I will try and change my container config to run with ‘run -g 20971520’ for instance, to limit it to 20MB
1 Like
uroni
February 22, 2026, 2:24pm
4
Yeah, on Linux it is assumed to work with something like logrotate which also does things like compressing the log files.
The best practice way with Docker might actually be to completely disable logging to files and just to log to stdout?