Backup 2026-05-16

Backup Vorarbeiten

2026-05-16 create Passwords
incus exec nextcloud -q --user 33 -- php /srv/nextcloud_php/occ passwords:backup:create passwords_backu 2>&1

Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.

But
if you prefer to keep config.php file read only
set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/33/go.php?to=admin-config
{"reqId":"rgU9U6EoAIAm3rKYHin0"
"level":3
"time":"2026-05-15T23:31:45+00:00"
"remoteAddr":""
"user":"--"
"app":"PHP"
"method":""
"url":"--"
"scriptName":"/srv/nextcloud_php/occ"
"message":"fopen(/srv/nextcloud_php/config/config.php): Failed to open stream: Permission denied at /srv/nextcloud_php/lib/private/Config.php#210"
"userAgent":"--"
"version":""
"occ_command":["/srv/nextcloud_php/occ"
"passwords:backup:create"]
"data":{"app":"PHP"}}
2026-05-16 export Passwords
incus exec nextcloud -q --user 33 -- php /srv/nextcloud_php/occ passwords:backup:export passwords_backup 2>&1

Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.

But
if you prefer to keep config.php file read only
set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/33/go.php?to=admin-config
{"reqId":"ST3W7BAejX2rY6W7Y2As"
"level":3
"time":"2026-05-15T23:31:45+00:00"
"remoteAddr":""
"user":"--"
"app":"PHP"
"method":""
"url":"--"
"scriptName":"/srv/nextcloud_php/occ"
"message":"fopen(/srv/nextcloud_php/config/config.php): Failed to open stream: Permission denied at /srv/nextcloud_php/lib/private/Config.php#210"
"userAgent":"--"
"version":""
"occ_command":["/srv/nextcloud_php/occ"
"passwords:backup:export"]
"data":{"app":"PHP"}}
2026-05-16 Stop All Container
incus stop --all

2026-05-16 restic Clear
restic -r s3:s3.eu-central-2.wasabisys.com/backup42 unlock 2>&1

Backup Incus Container

Erstelle Container-Abbild

2026-05-16 export afterlogic Container
incus export --compression none --instance-only afterlogic afterlogic.tar 2>&1

Exporting the backup: 313.58MB (313.06MB/s) Exporting the backup: 444.38MB (222.01MB/s) Backup exported successfully!
2026-05-16 export code01 Container
incus export --compression none --instance-only code01 code01.tar 2>&1

Exporting the backup: 307.37MB (307.36MB/s) Exporting the backup: 559.89MB (279.92MB/s) Exporting the backup: 646.95MB (215.62MB/s) Exporting the backup: 824.24MB (206.01MB/s) Exporting the backup: 882.64MB (176.49MB/s) Exporting the backup: 955.21MB (159.16MB/s) Exporting the backup: 1.00GB (142.84MB/s) Exporting the backup: 1.06GB (132.49MB/s) Backup exported successfully!
2026-05-16 export gitea Container
incus export --compression none --instance-only gitea gitea.tar 2>&1

Exporting the backup: 281.94MB (281.29MB/s) Backup exported successfully!
2026-05-16 export memos Container
incus export --compression none --instance-only memos memos.tar 2>&1

Backup exported successfully!
2026-05-16 export nextcloud Container
incus export --compression none --instance-only nextcloud nextcloud.tar 2>&1

Exporting the backup: 35.46MB (35.43MB/s) Exporting the backup: 92.62MB (46.29MB/s) Exporting the backup: 176.73MB (58.84MB/s) Exporting the backup: 394.71MB (98.49MB/s) Exporting the backup: 466.47MB (93.11MB/s) Exporting the backup: 542.24MB (90.19MB/s) Exporting the backup: 765.12MB (109.09MB/s) Exporting the backup: 1.08GB (134.65MB/s) Exporting the backup: 1.11GB (123.38MB/s) Exporting the backup: 1.26GB (125.88MB/s) Exporting the backup: 1.32GB (119.59MB/s) Exporting the backup: 1.44GB (119.72MB/s) Exporting the backup: 1.50GB (115.08MB/s) Exporting the backup: 1.68GB (119.74MB/s) Exporting the backup: 1.76GB (116.93MB/s) Exporting the backup: 1.82GB (113.62MB/s) Exporting the backup: 1.91GB (112.14MB/s) Exporting the backup: 2.14GB (118.84MB/s) Exporting the backup: 2.29GB (120.09MB/s) Backup exported successfully!
2026-05-16 export psql Container
incus export --compression none --instance-only psql psql.tar 2>&1

Exporting the backup: 244.99MB (244.76MB/s) Exporting the backup: 434.75MB (215.76MB/s) Exporting the backup: 538.84MB (178.70MB/s) Exporting the backup: 828.25MB (206.26MB/s) Exporting the backup: 942.21MB (187.06MB/s) Backup exported successfully!
2026-05-16 export snappy Container
incus export --compression none --instance-only snappy snappy.tar 2>&1

Exporting the backup: 92.01MB (91.98MB/s) Backup exported successfully!
2026-05-16 export syncthing Container
incus export --compression none --instance-only syncthing syncthing.tar 2>&1

Exporting the backup: 523.41MB (523.39MB/s) Exporting the backup: 1.16GB (578.53MB/s) Exporting the backup: 1.80GB (601.30MB/s) Exporting the backup: 2.38GB (595.66MB/s) Exporting the backup: 3.10GB (619.35MB/s) Exporting the backup: 4.00GB (667.12MB/s) Exporting the backup: 4.92GB (702.33MB/s) Exporting the backup: 5.82GB (727.80MB/s) Exporting the backup: 6.68GB (742.13MB/s) Exporting the backup: 7.43GB (743.05MB/s) Exporting the backup: 8.35GB (758.98MB/s) Exporting the backup: 9.06GB (749.90MB/s) Exporting the backup: 9.94GB (759.89MB/s) Exporting the backup: 10.55GB (749.00MB/s) Exporting the backup: 11.16GB (739.91MB/s) Exporting the backup: 11.78GB (732.17MB/s) Exporting the backup: 12.49GB (731.44MB/s) Exporting the backup: 13.13GB (726.21MB/s) Exporting the backup: 13.72GB (719.12MB/s) Exporting the backup: 14.38GB (715.57MB/s) Exporting the backup: 15.07GB (714.64MB/s) Exporting the backup: 15.67GB (709.16MB/s) Exporting the backup: 16.24GB (703.27MB/s) Exporting the backup: 16.82GB (697.99MB/s) Exporting the backup: 17.57GB (700.41MB/s) Exporting the backup: 18.37GB (704.09MB/s) Exporting the backup: 19.20GB (708.54MB/s) Exporting the backup: 20.08GB (714.75MB/s) Exporting the backup: 20.92GB (719.16MB/s) Exporting the backup: 21.61GB (718.26MB/s) Exporting the backup: 22.45GB (721.96MB/s) Exporting the backup: 23.29GB (725.63MB/s) Exporting the backup: 24.11GB (728.65MB/s) Exporting the backup: 24.59GB (721.30MB/s) Backup exported successfully!
2026-05-16 export valkey Container
incus export --compression none --instance-only valkey valkey.tar 2>&1

Backup exported successfully!
2026-05-16 Backup Container
restic backup --host incus ./*.tar 2>&1

using parent snapshot 4f25f2ac

Files: 0 new
9 changed
0 unmodified
Dirs: 0 new
0 changed
0 unmodified
Added to the repository: 166.692 MiB (31.199 MiB stored)

processed 9 files
28.208 GiB in 1:01
snapshot 3fac2b2b saved

Backup Datenbank

2026-05-16 Backup globale Rollen
incus exec psql --user 70 -- pg_dumpall -U postgres --globals-only > /srv/backup/global_roles.sql 2>&1

Gefundene Datenbanken: afterlogic, gitea, memos, nextcloud

2026-05-16 Dump afterlogic
incus exec psql --user 70 -- pg_dump --create -Fc afterlogic > /srv/backup/afterlogic.dump 2>&1

2026-05-16 Pruefe afterlogic
pg_restore /srv/backup/afterlogic.dump > /dev/null 2>&1

2026-05-16 Dump gitea
incus exec psql --user 70 -- pg_dump --create -Fc gitea > /srv/backup/gitea.dump 2>&1

2026-05-16 Pruefe gitea
pg_restore /srv/backup/gitea.dump > /dev/null 2>&1

2026-05-16 Dump memos
incus exec psql --user 70 -- pg_dump --create -Fc memos > /srv/backup/memos.dump 2>&1

2026-05-16 Pruefe memos
pg_restore /srv/backup/memos.dump > /dev/null 2>&1

2026-05-16 Dump nextcloud
incus exec psql --user 70 -- pg_dump --create -Fc nextcloud > /srv/backup/nextcloud.dump 2>&1

2026-05-16 Pruefe nextcloud
pg_restore /srv/backup/nextcloud.dump > /dev/null 2>&1

2026-05-16 Backup alle DBs
restic backup --host DB /srv/backup/ 2>&1

using parent snapshot f3ecf10b

Files: 0 new
6 changed
0 unmodified
Dirs: 0 new
2 changed
0 unmodified
Added to the repository: 6.939 MiB (5.918 MiB stored)

processed 6 files
45.327 MiB in 0:14
snapshot d983a4e5 saved