I am setting up a backup for my nextcloud setup thus I would like to know where my contacts and calendar data is saved. I have a snap installation.
Where did I already look?
I checked the
documentation which does not mention apps nor snap installation. I checked the
app pages. They do not mention a location nor a snap installation. I searched trough /snap/nextcloud/current/ and /var/snap/nextcloud/current/ manually in the server but couldn’t find a location.
I checked the help center and found the following question that are similar.
[Help] Contacts file location
Encryption of Contacts, Calendar, Tasks - App
It says the Contacts app data is stored at the database file. Does that mean my contacts are already backed-up if I backup my synced folder?
I am trying to find out how to backup my contacts and calendar data. It will be much easier for me if I can use my laptop client (not the server) for taking the backup snapshots because I already have a system for it.
Your contact and calendar data are stored in the database, so the database backup should be enough:
As a user, you don’t have database access. Also if you prefer having a different format, there is a shell-script running backups manually:
I like to backup my Nextcloud calendars and addressbooks as .ics/.vcf files, because it is very easy to restore: just import the backed up .ics/.vcf file to the server or a client and the accidentally deleted data is back online.
Therefore I initially wrote a bash script with hardcoded links for my nextcloud installation. Two friends were interested and so I improved the script to be more generic which possibly makes it interesting for other users as well.
The script downloads all available ca…
Thanks a lot. Great reply and the script looks useful. I hope it works in snap installation as well.
@qweqweqwe - I am curious: have you tried that script? Does it work in snap installation?