Mount WebDAV backup repository

Hello,
I have created backups successfully in my Nextcloud storage.
I’m using restic, rclone and resticprofile.

I’m using multiple profiles representing different directories with different backup schedule etc.

Now I want to check the content of the created repositories in Nextcloud.

Can you please advise how to do this?

THX

check the content of the created repositories in Nextcloud.

If you provide more details maybe answer can be more detailed too.

It depends on exactly what you mean by check the content. If you want to browse the snapshots to see what files/folders they contain, and you’re on linux, macOS or FreeBSD, then you can use the mount command to mount an entire repository, and then look through the snapshots in it and their contents as if it were a regular filesystem. restic mount is discussed in the restore section of the docs:

https://restic.readthedocs.io/en/stable/050_restore.html?#restore-using-mount

If you’re on windows, then mount isn’t available, so I think you’d have to fall back on viewing a listing of the contents of the snapshots. You can do this by running restic ls <snapshotid>. While this is also briefly mentioned in the restore section of the docs, the manual has more details.

It is also always a good idea to test the backups by trying to restore a whole snapshot or at least parts of it.

“Checking the content” means:
Browsing your backup as a regular file system

Therefore restic’s Restore using mount is the relevant function.
However, all snapshots are stored in Nextcloud, means there’s no local storage like /srv/restic-repo.

So, the question is:
How can I mount the restic repo in my Nextcloud WebDAV storage?

By using exactly the same command as in the docs, but replacing /srv/restic-repo with your repository location.
I believe as you’re using rclone, the mount command will therefore look something like this:

restic -r rclone:<remote>:<path> mount /mnt/restic

Great.
This solution is working, means I can see the content of the (remote) repo:

# ll /mnt/restic                                                                  
insgesamt 0
dr-xr-xr-x 1 root root 0 29. Jul 10:57 hosts
dr-xr-xr-x 1 root root 0 29. Jul 10:57 ids
dr-xr-xr-x 1 root root 0 29. Jul 10:57 snapshots
dr-xr-xr-x 1 root root 0 29. Jul 10:57 tags

However, directory data is missing.
And checking my Nextcloud storage, this directory is storing all backup data (in my case 9GB).

Do you mean you can’t see the contents of your backups? You should be able to find them under snapshots/<timestamp>/

My fault.
Backup data is distributed in all directories.