How to notify non-admin users about backup success/failures

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.8)
    • Nextcloud AIO 11.6.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Docker container in Nextcloud AIO 11.6.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Docker container in Nextcloud AIO 11.6.0
  • PHP version (e.g, 8.3):
    • Docker container in Nextcloud AIO 11.6.0
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • Always present
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

notification about success/failure of planned backup set in nextcloud-aio master container are sent to Admin user/groups

is there any possibility to receive such notifications as normal (non admin) user ?

For obvious reasons I use my standard user account on a daily basis (not the admin) and I would like to receive the notifications about backup tasks, without the struggle to login with my admin account.

Maybe there is a way to do it, that either I don’t know or not able to find around.
If not possible could be a nice to have feature.

Note: mail and/notifications/any other trick inputs are all welcome :handshake:

Steps to replicate it (hint: details matter!):

  1. access to AIO master container configuration
  2. enable Daily backup and automatic updates
  3. when a backup is executed, Admins are getting push notification about it

Log entries

2025-08-30T04:00:40.747545031Z ++ head -1 /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:00:40.748726370Z + BACKUP_TIME=04:00
2025-08-30T04:00:40.748744240Z + export BACKUP_TIME
2025-08-30T04:00:40.748748567Z + export DAILY_BACKUP=1
2025-08-30T04:00:40.748752596Z + DAILY_BACKUP=1
2025-08-30T04:00:40.754005265Z ++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:00:40.755133488Z + '[' '' '!=' automaticUpdatesAreNotEnabled ']'
2025-08-30T04:00:40.755149911Z + export AUTOMATIC_UPDATES=1
2025-08-30T04:00:40.755154226Z + AUTOMATIC_UPDATES=1
2025-08-30T04:00:40.761534408Z ++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:00:40.765652272Z + '[' '' '!=' successNotificationsAreNotEnabled ']'
2025-08-30T04:00:40.765671044Z + export SEND_SUCCESS_NOTIFICATIONS=1
2025-08-30T04:00:40.765675441Z + SEND_SUCCESS_NOTIFICATIONS=1
2025-08-30T04:00:40.765679234Z + set +x
2025-08-30T04:00:40.773938093Z Daily backup script has started
2025-08-30T04:00:40.794622829Z [Sat Aug 30 04:00:40.794370 2025] [mpm_event:notice] [pid 150:tid 150] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.1 configured -- resuming normal operations
2025-08-30T04:00:40.794763418Z [Sat Aug 30 04:00:40.794636 2025] [core:notice] [pid 150:tid 150] AH00094: Command line: 'httpd -D FOREGROUND'
2025-08-30T04:00:40.807445274Z {"level":"info","ts":1756526440.8072145,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
2025-08-30T04:00:40.807825514Z {"level":"info","ts":1756526440.8076866,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":14977069056,"previous":9223372036854775807}
2025-08-30T04:00:40.809950471Z [30-Aug-2025 04:00:40] NOTICE: fpm is running, pid 155
2025-08-30T04:00:40.810249470Z [30-Aug-2025 04:00:40] NOTICE: ready to handle connections
2025-08-30T04:00:40.812293623Z {"level":"info","ts":1756526440.8120975,"msg":"using config from file","file":"/Caddyfile"}
2025-08-30T04:00:40.813827897Z {"level":"info","ts":1756526440.813628,"msg":"adapted config to JSON","adapter":"caddyfile"}
2025-08-30T04:00:40.815793364Z {"level":"info","ts":1756526440.815592,"msg":"serving initial configuration"}
2025-08-30T04:00:40.856263142Z Connection to nextcloud-aio-apache (172.20.0.16) 443 port [tcp/https] succeeded!
2025-08-30T04:00:40.895560439Z Starting mastercontainer update...
2025-08-30T04:00:40.895582475Z (The script might get exited due to that. In order to update all the other containers correctly, you need to run this script with the same settings a second time.)
2025-08-30T04:00:46.333178395Z Waiting for watchtower to stop
2025-08-30T04:01:16.355929947Z Updating container images...
2025-08-30T04:03:38.049719575Z Creating daily backup...
2025-08-30T04:04:24.268763953Z Waiting for backup container to stop
:
:
2025-08-30T04:17:24.802820206Z Waiting for backup container to stop
2025-08-30T04:17:54.827381939Z Starting and updating containers...
2025-08-30T04:18:14.250171913Z Waiting for the Nextcloud container to start
:
:
2025-08-30T04:22:14.608001154Z Waiting for the Nextcloud container to start
2025-08-30T04:22:44.666493991Z Sending backup notification...
2025-08-30T04:22:44.666656336Z Connection to nextcloud-aio-nextcloud (172.20.0.15) 9000 port [tcp/*] succeeded!
2025-08-30T04:22:51.005145341Z Daily backup script has finished
2025-08-30T04:23:00.441142566Z Deleted Images:
:
:
2025-08-30T04:23:00.441615185Z Total reclaimed space: 6.626GB
2025-08-30T04:24:00.505871518Z ++ head -1 /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:24:00.506440249Z + BACKUP_TIME=04:00
2025-08-30T04:24:00.506463548Z + export BACKUP_TIME
2025-08-30T04:24:00.506468536Z + export DAILY_BACKUP=1
2025-08-30T04:24:00.506472556Z + DAILY_BACKUP=1
2025-08-30T04:24:00.506855486Z ++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:24:00.507468939Z + '[' '' '!=' automaticUpdatesAreNotEnabled ']'
2025-08-30T04:24:00.507482124Z + export AUTOMATIC_UPDATES=1
2025-08-30T04:24:00.507486725Z + AUTOMATIC_UPDATES=1
2025-08-30T04:24:00.507926731Z ++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
2025-08-30T04:24:00.508637497Z + '[' '' '!=' successNotificationsAreNotEnabled ']'
2025-08-30T04:24:00.508653010Z + export SEND_SUCCESS_NOTIFICATIONS=1
2025-08-30T04:24:00.508657777Z + SEND_SUCCESS_NOTIFICATIONS=1
2025-08-30T04:24:00.508661670Z + set +x
2025-08-30T08:45:29.990468041Z Deleting duplicate sessions

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

nothing relevant

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

nothing relevant

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

nothing relevant

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "notYour.business",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "notYour.business"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.8.1",
        "overwrite.cli.url": "https:\/\/notYour.business\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "check_data_directory_permissions": false,
        "maintenance": false,
        "updater.release.channel": "stable",
        "updatedirectory": "\/nc-updater",
        "loglevel": "2",
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": "10485760",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": "30",
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "htaccess.RewriteBase": "\/",
        "files_external_allow_create_new_local": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "pipe",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "memories.vod.vaapi.low_power": true,
        "memories.vod.nvenc.temporal_aq": true,
        "memories.vod.disable": false,
        "memories.video_default_quality": "-2",
        "davstorage.request_timeout": 3600,
        "dbpersistent": false,
        "appsallowlist": false,
        "maintenance_window_start": 100,
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "memories.gis_type": 2,
        "memories.db.triggers.fcu": true,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "default_phone_region": "XX",
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "updatechecker": false,
        "DOMAIN": "notYour.business"
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - calendar: 5.5.1
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.2.6
  - contactsinteraction: 1.12.0
  - context_chat: 4.4.1
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.2
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_antivirus: 6.0.4
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_fulltextsearch: 31.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - forms: 5.1.2
  - fulltextsearch: 31.0.0
  - fulltextsearch_elasticsearch: 31.0.0
  - groupfolders: 19.1.3
  - integration_openai: 3.7.1
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - memories: 7.6.2
  - music: 2.2.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 3.0.0
  - notes: 4.12.3
  - notifications: 4.0.0
  - notify_push: 1.2.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0
  - previewgenerator: 5.9.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recognize: 9.0.5
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.7.4
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - spreed: 21.1.4
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - whiteboard: 1.1.3
  - workflowengine: 2.13.0
Disabled:
  - assistant: 2.6.1 (installed 2.6.1)
  - encryption: 2.19.0
  - integration_homeassistant: 0.0.6 (installed 0.0.6)
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - user_ldap: 1.22.0

Right now AIO only sends the backup success/failure notifications to the admin account. There’s no built-in way to add non-admin users.

Simplest workaround: just set up a mailbox rule on your admin account. That way, every backup notification gets automatically delivered to your daily-use account. Whether you can do this depends on what your mail provider supports, but in most cases it’s just a filter/rule in the mailbox.

If forwarding or rules aren’t possible on your provider, then the only alternative would be a feature request for AIO itself.

2 Likes

sounds good to me @vawaver but I am not able to find the way to enable mail notifications for backup

in settings/user/notifications the only section I can see that is relevant could be this below, am I right ?

Thank you.

Indeed, this is what should be used. You can also configure the mail address for any admin account to send emails to a certain mail address.

2 Likes

thank you @vawaver for those that are interested here it is the feature requests

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.