start ownCloud sync client twice

MAC:

create a new folder under

/Users/$USER/Library/Application Support/ownCloud_xxx

create this script and modify the last 2 lines

#!/bin/bash

function start_oc {
    mkdir -p /tmp/oc_$1
    TMPDIR="/tmp/oc_$1"
    export TMPDIR
    /Applications/owncloud.app/Contents/MacOS/owncloud --confdir "/Users/$USER/Library/Application Support/ownCloud_$1" &
}

start_oc firm
start_oc priv

then made it a “OS X” Application with http://sveinbjorn.org/platypus so you can put it in login items.

Windows:

1. Close ownCloud sync client
2. Coppy ownCloud sync programm from

C:Program Files (x86)ownCloud

to

C:Program Files (x86)ownCloud_1 / C:Program Files (x86)ownCloud_2

3. create 2 Folders for the new config file like

C:owncloudconfig1

and

C:owncloudconfig1

4. create 2 shortcuts like

"C:Program Files (x86)ownCloud_1owncloud.exe" --confdir "C:owncloudconfig1"

and

"C:Program Files (x86)ownCloud_2owncloud.exe" --confdir "C:owncloudconfig12"

5. start the both shortcuts

Linux:

#!/bin/bash
INSTANCE=company
CONFDIR="$HOME/.local/share/data/ownCloud_$INSTANCE"

# ensure path exists
test -e "$CONFDIR" || mkdir "$CONFDIR"

# copy the binary
# yes we need to do this, or owncloud will think it's the same instance
# NOTE: symlink won't help unfortunatly
cp /usr/bin/owncloud "$HOME/bin/owncloud_${INSTANCE}.bin"

# start owncloud with custom confdir
exec "$HOME/bin/owncloud_${INSTANCE}.bin" --confdir "$CONFDIR" "$@"