39aldo39/DecSyncCC

Looking for .ics or .vcf under DecSync directory but only found files that I don't understand. Where are the files with the contacts and calendars?

tifDev opened this issue · 5 comments

I thought I would find .ics and .vcf files under DecSync directory but couldn't find any file with a contact actually...

All i've found is files with:

{"version":1}

["2020-07-22T22:17:45","name","AddressBookDecSync "]
["2020-07-22T22:17:52","name","AddressBookDecSync"]

How does this work?
I'm really not understanding this type of storage and how I could restore my contacts later with an .vcf for example.

Thanks.

You can find files with a VCard in it in contacts/colID*/stored-entries/*/resources/*, where the stars can be variable.

But you don't have to know how it is exactly stored to use it. If you synchronize the DecSync directory with another device, the contacts will be synchronized as well. Alternatively, you can move the DecSync directory from an old device to a new device. Then, when you install DecSync CC and select the right collection, your old contacts will appear. See also 39aldo39/DecSync for more info.

Hi,

There is no such thing in my DecSyncCC directory. What I have is:
contacts/colID*/stored-entries/info
(Where info is a file)

You first need to create a new contact using a contacts application. When you create a contact you have to make sure that you store it in the DecSync collection. Contacts in other collections are not used by DecSync CC.

@tifDev You can also use the 'share' feature in the android contacts app to create a .vcf file.
I select all my contacts and share the contacts.vcf file to syncthing if I need it.

Having a human readable .ics and .vcf in addition to the existing files that decsync use would be hugely helpful to users. Please consider an option to include a .ics and a .vcf file in addition to the existing files.

My use case for this is :
I wanted to do a little scripting with the data in my calendar events. Manually Exporting events to .ics file from my calendar app is not an option since the script is supposed to run daily, and I don't want to export manually daily. So because decsync data is not human readable what I ended up doing is syncing decsync folder to my Linux pc via syncthing then using eclvolution plugin to make evolution read that data and then using the .ics generated by evolution in its data directory for doing the scripting.
(PS. If anyone thinks there is better way to do this, then please let me know!)