As I am stuck in the middle of a migration issue https://github.com/owncloud/core/issues/25722), before deleting everything, how can I export manually (SQL, PHPMyAdmin) my Contacts and Calendar items, fr e.g.: I just need to export : SELECT fullname,carddata FROM contacts_cards WHERE addressbookid=3 ORDER BY contacts_cards.
Because before Migrating anything I want to be sure I get my Contacts, and Caldendars items saved in a standard/open way. so I got this SQL : SELECT fullname, carddata FROM contacts_cards WHERE addressbookid=2 ORDER BY fullname but how can I export each rows in separated .vcf files ?
I finally found the SQL statement : SELECT carddata INTO OUTFILE '/MyDir/MyFile.Vcard' FROM contacts_cards WHERE id=1; or even better : SELECT carddata INTO DUMPFILE '/MyDir/MyFile.Vcard' FROM contacts_cards WHERE id=1; as outputs aren't the same format, choose which one suits you best. You need also to be connected as "admin" or "root" to your DB otherwise you couln't write on the file system; code: mysql -u root -pPSSWORD YourDB (-p and your PASSWORD should be attached, not -u YourUser)
But I get only one .vcard, how to generate all my contacts in separated .vcard files?