[Davical-general] Easiest way to purge all contacts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Davical-general] Easiest way to purge all contacts

Nikolai Lusan
Greetings all,
A while back many of my contacts started to duplicate. I have finally
gotten around to sorting them out in a single vcard file that has no
duplicates. My question is: short of doing a complete reinstall what is
the easiest way to purge all vcard entries from the database so I can
re-add the cleaned versions?

--
Nikolai Lusan <[hidden email]>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Easiest way to purge all contacts

Johan Vromans
On Tue, 21 Apr 2015 20:09:28 +1000
Nikolai Lusan <[hidden email]> wrote:

> Greetings all,
> A while back many of my contacts started to duplicate. I have finally
> gotten around to sorting them out in a single vcard file that has no
> duplicates. My question is: short of doing a complete reinstall what is
> the easiest way to purge all vcard entries from the database so I can
> re-add the cleaned versions?

Collect all cleaned entries in a multi-VCARD file and use the DAViCal
maintenance menu to upload it, overwriting the current contacts.

If you have curl, the following command may be useful (all on a single
line):

    curl -q --silent --basic --request PUT
       --header "Content-Type: text/vcard; charset=utf-8"
       --user "$user:$password" --data-binary "@$vcf"

where $user = username, $password = password and $vcf is the name of the
VCARD data file.

HTH,
        Johan

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

attachment0 (205 bytes) Download Attachment