Hello everyone!
I’ve been trying to get the remote backup feature using borgbackup in AIO to work for the past few weeks, facing all kinds of issues.
Now, the backup seems to work just fine at the beginning, but fails at the end. Here are the logs presented on https://:8080/api/docker/logs?id=nextcloud-aio-borgbackup
2025-03-29T13:03:43.405543032Z Your public ssh key for borgbackup is: ssh-ed25519 AAAAC*****...
2025-03-29T13:03:47.190916303Z Performing backup...
2025-03-29T13:03:47.191082088Z Starting the backup...
2025-03-29T13:03:49.629042690Z Creating archive at "ssh://borg@100.***.***.105:22/mnt/ssd/borg/repos/nextcloud::20250329_130347-nextcloud-aio"
2025-03-29T13:34:16.616463596Z /nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/lost+found: dir_open: [Errno 13] Permission denied: 'lost+found'
2025-03-29T13:44:43.966038568Z ------------------------------------------------------------------------------
2025-03-29T13:44:43.966065268Z Repository: ssh://borg@100.***.***.105:22/mnt/ssd/borg/repos/nextcloud
2025-03-29T13:44:43.966070732Z Archive name: 20250329_130347-nextcloud-aio
2025-03-29T13:44:43.966138598Z Archive fingerprint: 8ca2bd9f7689874d480723042745db480b7c5ada049a814e7617049ee8c077ad
2025-03-29T13:44:43.966153107Z Time (start): Sat, 2025-03-29 13:03:49
2025-03-29T13:44:43.966158556Z Time (end): Sat, 2025-03-29 13:44:22
2025-03-29T13:44:43.966162810Z Duration: 40 minutes 33.21 seconds
2025-03-29T13:44:43.966167061Z Number of files: 40467
2025-03-29T13:44:43.966216483Z Utilization of max. archive size: 0%
2025-03-29T13:44:43.966225356Z ------------------------------------------------------------------------------
2025-03-29T13:44:43.966266885Z Original size Compressed size Deduplicated size
2025-03-29T13:44:43.966273936Z This archive: 3.16 GB 2.03 GB 1.89 GB
2025-03-29T13:44:43.966278446Z All archives: 3.16 GB 2.03 GB 1.89 GB
2025-03-29T13:44:43.966289083Z
2025-03-29T13:44:43.966293596Z Unique chunks Total chunks
2025-03-29T13:44:43.966368012Z Chunk index: 37123 40937
2025-03-29T13:44:43.966375585Z ------------------------------------------------------------------------------
2025-03-29T13:44:44.705750467Z Deleting the failed backup archive...
2025-03-29T13:45:53.152976691Z ------------------------------------------------------------------------------
2025-03-29T13:45:53.153218336Z Original size Compressed size Deduplicated size
2025-03-29T13:45:53.153258333Z Deleted data: -3.17 GB -2.03 GB -1.89 GB
2025-03-29T13:45:53.153271364Z All archives: 0 B 0 B 0 B
2025-03-29T13:45:53.153301560Z
2025-03-29T13:45:53.153313518Z Unique chunks Total chunks
2025-03-29T13:45:53.153749093Z Chunk index: 0 0
2025-03-29T13:45:53.153781941Z ------------------------------------------------------------------------------
2025-03-29T13:45:53.885528919Z Backup failed!
2025-03-29T13:45:53.885551742Z You might want to check the backup integrity via the AIO interface.
In the logs, I found something about lost+found not being backed up due to permissions, but from my understanding, that shouldn’t even be backed up in the first place.
I have set up a borg repository on the external SSD (connected via USB) on an off-site raspberry pi that I want to backup to. There are even some files worth 1.8G created on the remote:
mario@pluto:/mnt/ssd/borg/repos/nextcloud $ sudo du -sh .
1.8G .
mario@pluto:/mnt/ssd/borg/repos/nextcloud $ ls -al
total 1416
drwxr-xr-x 3 borg borg 4096 Mar 29 13:46 .
drwxr-xr-x 3 borg borg 4096 Mar 29 12:40 ..
-rw------- 1 borg borg 964 Mar 29 12:45 config
drwx------ 3 borg borg 4096 Mar 29 12:45 data
-rw------- 1 borg borg 1373807 Mar 29 13:45 hints.19
-rw------- 1 borg borg 41258 Mar 29 13:45 index.19
-rw------- 1 borg borg 190 Mar 29 13:45 integrity.19
-rw------- 1 borg borg 16 Mar 29 13:45 nonce
-rw------- 1 borg borg 73 Mar 29 12:43 README
The data directory contains a bunch of 2-digit-numbered directories with files following the same numbering-scheme. I guess those should be the encrypted backup files?
After trying to backup again, the logs are the same, but I now have 3.6G of files on the remote.
A backup integrity check is successful, with the following log:
2025-03-29T15:25:52.129998746Z Your public ssh key for borgbackup is: ssh-ed25519 AAAA***...
2025-03-29T15:25:52.132342957Z Checking the backup integrity...
2025-03-29T15:25:54.361764569Z Remote: Starting repository check
2025-03-29T15:27:02.002781845Z Remote: finished segment check at segment 37
2025-03-29T15:27:02.271040073Z Remote: Starting repository index check
2025-03-29T15:27:02.271754051Z Remote: Index object count match.
2025-03-29T15:27:02.272474509Z Remote: Finished full repository check, no problems found.
2025-03-29T15:27:02.272787808Z Starting archive consistency check...
2025-03-29T15:27:02.528581065Z Starting cryptographic data integrity verification...
2025-03-29T15:27:11.652381643Z Finished cryptographic data integrity verification, verified 1 chunks with 0 integrity errors.
2025-03-29T15:27:11.684709873Z Archive consistency check complete, no problems found.
2025-03-29T15:27:13.547935905Z Check finished successfully on 29.03.2025 - 15:27:13 (00 hours 01 minutes 21 seconds).
The dropdown menu for selecting a backup to restore, however, is empty, so I probably can’t restore that backup.
I have the AIO project running inside an Ubuntu LXC on my Proxmox host. FUSE support is enabled for the LXC.
I’m really grateful for any hints, since I have absolutely no idea what else to try to get it to work.