Unifi Data Dir

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Unifi Data Dir

      Evening all! Loving the OMV with container adds.

      I am trying to backup offsite from local unifi's controller auto daily backup config/data.

      Using - ryansch/unifi-rp

      controller install should be -
      /var/lib/unifi/backup/autobackup however after looking through the directories, I just cant find it.

      OR

      perhaps anyone know how to change the default backup folder location?

      Thank you!
    • Source Code

      1. version: '2'
      2. services:
      3. unifi:
      4. image: ryansch/unifi-rpi:latest
      5. container_name: unifi
      6. restart: always
      7. network_mode: host
      8. # Uncomment the following to set java options
      9. # environment:
      10. # JAVA_OPTS: -Xmx512M
      11. volumes:
      12. # Unifi v5.0.7 creates all of these directories (some remain empty)
      13. - config:/var/lib/unifi
      14. - log:/usr/lib/unifi/logs
      15. - log2:/var/log/unifi
      16. - run:/usr/lib/unifi/run
      17. - run2:/run/unifi
      18. - work:/usr/lib/unifi/work
      19. volumes:
      20. config:
      21. driver: local
      22. log:
      23. driver: local
      24. log2:
      25. driver: local
      26. run:
      27. driver: local
      28. run2:
      29. driver: local
      30. work:
      31. driver: local
      Display All
    • I don't know this image nor unifi, but this is my best guess:

      nnerbo wrote:

      - config:/var/lib/unifi
      - log:/usr/lib/unifi/logs
      - log2:/var/log/unifi
      - run:/usr/lib/unifi/run
      - run2:/run/unifi
      - work:/usr/lib/unifi/work
      This is the mapping of the folders. On the right side of each ":" is the folder path in the container. On the left side is the path on the host. Usually you specify a complete path starting with /srv/dev-disk-by-label....
      So you should specify a complete path for the /var/lib/unifi folder. Something like this...

      Source Code

      1. - /srv/dev-disk-by-label-xxxx/unifi/config:/var/lib/unifi
      2. - log:/usr/lib/unifi/logs
      3. - log2:/var/log/unifi
      4. - run:/usr/lib/unifi/run
      5. - run2:/run/unifi
      6. - work:/usr/lib/unifi/work
      Run the docker-compose file with docker-compose up -d
      Then you are able to point a shared folder to that path and create a backup job.
      Odroid HC2 - armbian - OMV4.x | Asrock Q1900DC-ITX - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!: