backup your ownCloud contacts via cron

If you ever wondered if there is a way to automatically backup your ownCloud contacts via cron here is the solution: <?php date_default_timezone_set('Europe/Berlin'); error_reporting(E_ALL); $date = date('Y-m-d-h-i-s'); $user = 'your_owncloud_username'; $password = 'your_owncloud_password'; $cmd = "wget --no-check-certificate --user=".$user." --password=".$password." -O ".$date."_contacts_".$user.".vcf https://your.owncloud.tld/remote.php/carddav/addressbooks/".$user."/contacts?export"; $dump = exec(escapeshellcmd($cmd)); ?> You just need to fill in your credentials and modify the path to your ownCloud installation.

August 7, 2013 · 1 min

ownCloud webdav auth on apache with php FCGId

If you’re running ownCloud on a server with FCGId you might wonder why login to the web interface work flawlessly but your sync client keeps saying that the provided credentials aren’t correct. The problem is, that the webdav auth done via remote.php (this is actually used by the sync client) is not able to process the credentials because of FCGId. The following .htaccess in the root folder fixed this problem for me, you need to enable mod_rewrite for this to work. ...

June 25, 2013 · 1 min