# [[Duplicati]] _Created: 2025-06-18_ | #backup | [[010 System Administration MOC]] ## Docker notes ### Running as root When using the linuxserver image for duplicati, you might need to set `PUID` and `PGID` environment variables to `0` to run the container as root. By default it runs as a non-root user. But if you are backing up volumes with mixed permissions, you may not have an option but to run the container as root. >[!warning] inotify errors >When I was running the container as root, I got these errors: >``` >2025-06-19T01:26:01.176393904Z Unable to start up. Perhaps another process is already running? 2025-06-19T01:26:01.176413865Z Error message: System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached. 2025-06-19T01:26:01.176416600Z at System.IO.FileSystemWatcher.StartRaisingEvents() 2025-06-19T01:26:01.176418620Z at Duplicati.Server.SingleInstance..ctor(String basefolder) 2025-06-19T01:26:01.176420601Z at Duplicati.Server.Program.CreateApplicationInstance(Boolean writeToConsoleOnExceptionw) >``` >This is happening because the per-user inotify limits of the root user includes the ones used in the host system. I have a busy system with a bunch of other apps also using up the quota. The solution is to increase the quota in `/etc/sysctl.conf` >```sysctl > fs.inotify.max_user_instances=1024 > fs.inotify.max_user_watches=524288 >``` ### Mounting source volumes as read-only If you only want to backup, then mount the source volumes as read-only. But if you want to be able to restore, you might need to leave the permissions as read-write.