Update 2013-02-18: See comments. The exclude location is now /etc/ownCloud/sync-exclude.lst, with no user-specific exclude file.
I’ve been playing with ownCloud and just set up the sync client for Ubuntu 12.04. One immediate issue I encountered is that it tried to sync files I wanted it to ignore, like Vim’s swap (.filename.swp) files.
The way to do this is somewhat undocumented. The client has no GUI option for this, but after digging in logs and source code I discovered that it looks in ~/.csync/csync_exclude.conf
for an exclusion list. A example is installed by the .deb package into /usr/etc/. This is an unused directory on Ubuntu; even the ownCloud client ignores it. I copied it to ~/.csync. Here is what mine looks like:
*.filepart *~ *.bak *.part *.unison* *csync_timedif.ctmp* .*.sw? .*.*sw? .DS_Store .ds_store desktop.ini Thumbs.db
The “sw?” lines cover my Vim issue. The rest match other common backup files and metadata. I’m happy to leave them even though some are irrelevant to Linux users.
Aside: With services like Google Calendar, Google Contacts, and Dropbox, why use ownCloud at all? If you’ve ever met me or read my blog, you can probably guess my response. The short answer is: because I want to control who sees my data. I’ll let Rob Hoelz give the long answer.
Tags: owncloud
4 comments
Comments feed for this article
Trackback link: https://www.tolaris.com/2012/07/05/excluding-files-in-owncloud-client/trackback/