View Single Post
Posts: 1,096 | Thanked: 760 times | Joined on Dec 2008
#20
OK, here is my config that works. And by the way, my dbus command just returns true too...

If you want to make sure it is working you can see synchronization history on memotoo or you can increase sync log level on device and tail it.

The sync logs are in /home/user/.sync/profiles/sync/logs/

here is the log file from just now setting this up and running it:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<synclog name="my-memotoo.com">
    <syncresults scheduled="false" minorcode="402" majorcode="1" time="2012-03-01T20:34:38"/>
    <syncresults scheduled="false" minorcode="0" majorcode="0" time="2012-03-01T20:39:51">
        <target name="./Notepad">
            <local modified="0" added="3" deleted="0"/>
            <remote modified="0" added="0" deleted="0"/>
        </target>
        <target name="./calendar">
            <local modified="0" added="1" deleted="0"/>
            <remote modified="0" added="19" deleted="0"/>
        </target>
        <target name="./contacts">
            <local modified="0" added="6" deleted="0"/>
            <remote modified="0" added="0" deleted="0"/>
        </target>
        <target name="./sms">
            <local modified="0" added="126" deleted="0"/>
            <remote modified="0" added="26" deleted="0"/>
        </target>
    </syncresults>
    <syncresults scheduled="false" minorcode="0" majorcode="0" time="2012-03-01T20:45:40"/>
    <syncresults scheduled="false" minorcode="0" majorcode="0" time="2012-03-01T21:07:58">
        <target name="./contacts">
            <local modified="0" added="0" deleted="0"/>
            <remote modified="0" added="1" deleted="0"/>
        </target>
    </syncresults>
    <syncresults scheduled="false" minorcode="0" majorcode="0" time="2012-03-01T21:50:04">
        <target name="./sms">
            <local modified="0" added="0" deleted="0"/>
            <remote modified="3" added="0" deleted="0"/>
        </target>
    </syncresults>
</synclog>

I renamed these my-memotoo* to avoid confusion with the included memotoo xml files.

/home/user/.sync/profiles/sync/my-memotoo.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="my-memotoo.com">
    <key value="My-Memotoo" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="false" name="use_accounts"/>
    <profile type="service" name="my-memotoo.com"/>
    <profile type="storage" name="hcontacts">
        <key value="true" name="enabled"/>
        <key value="false" name="hidden"/>
    </profile>
    <profile type="storage" name="hcalendar">
        <key value="Personal" name="Notebook Name"/>
        <key value="true" name="enabled"/>
        <key value="false" name="hidden"/>
    </profile>
    <profile type="storage" name="hnotes">
        <key value="true" name="enabled"/>
        <key value="false" name="hidden"/>
    </profile>
    <profile type="storage" name="hsms">
        <key value="true" name="enabled"/>
        <key value="false" name="hidden"/>
    </profile>
    <schedule enabled="false" interval="0" days="" syncconfiguredtime="" time="">
        <rush begin="" enabled="false" interval="0" end="" days=""/>
    </schedule>
</profile>
you can see in the schedule enabled item where you can set that up if you want to. I just run it manually occasionally.

/home/user/.sync/profiles/service/my-memotoo.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<profile name="my-memotoo.com" type="service">
        <key name="Remote database" value="http://sync.memotoo.com/syncml" />

        <key name="Username" value="YOURMEMOTOOUSERNAME" />
        <key name="Password" value="YOURMEMOTOOPASSWORD" />


        <key name="destinationtype" value="online"/>

        <profile name="syncml" type="client" >
                <key name="use_wbxml" value="false" />
                <key name="Sync Transport" value="HTTP" />
                <key name="Sync Direction" value="two-way" />
                <key name="Sync Protocol" value="SyncML12" />
        </profile>

        <profile name="hcontacts" type="storage" >
                <key name="Local URI" value="./contacts" />
                <key name="Target URI" value="contact" />
        </profile>

        <profile name="hcalendar" type="storage" >
                <key name="Local URI" value="./calendar" />
                <key name="Target URI" value="caltask" />
                <key name="Calendar Format" value="vcalendar" />
        </profile>

        <profile name="hnotes" type="storage" >
                <key name="Local URI" value="./Notepad" />
                <key name="Target URI" value="pnote" />

	 <profile name="hsms" type="storage" >
		<key name="Local URI" value="./sms" />
		<key name="Target URI" value="sms" />
	    </profile>

        </profile>
</profile>
Then run the sync with:

Code:
dbus-send --session --print-reply --dest=com.meego.msyncd /synchronizer com.meego.msyncd.startSync string:'my-memotoo.com'
note that the files in the sync and service directories are different...

You can also sync your MyDocs folder to memotoo files too if you want to.

First install lftp from ovi store

http://store.ovi.com/content/212267

lftp supports the TLS that memotoo uses for ftp. Maybe not as secure as scp or sftp, but I don't really care.

Here is my little script to sync files to memotoo(note you might need to purchase more space on memotoo if you do this!!!! I have excluded the movies and music folders though)

save this somewhere as something like syncmemotoo_files.sh

chmod +x whatever you name it.

Code:
#!/bin/sh

# Replace "login", "password" and "LCD" with your settings
HOST="ftp.memotoo.com"
USER="YOURMEMETOOUSER"
PASS="YOURMEMOTOOPASS"
# Local directory
LCD="/home/user/MyDocs/"
# Remote directory
RCD="/"

#excluding movies and music folder because it can take a loooooong time and take a lot of space which costs on memotoo,
#enable those if you want and have plenty of space on both targets
#also excluding pictures and cities folder

#also, there is no deletion setup in this mirror, so you would need to delete something in both places for it to be gone
#you can explore the --delete option of lftp mirror if you want to

#memotoo deos ftpes which uses TLS, so should be ok

lftp -c "set mirror:exclude-regex ^.*cities.*$\|^.*Movies.*$\|^.*Music.*$\|^.*Pictures.*$;
open ftp://$USER:$PASS@$HOST;
lcd $LCD;
cd $RCD;
mirror --reverse \
	--verbose"

lftp -c "set mirror:exclude-regex ^.*cities.*$\|^.*Movies.*$\|^.*Music.*$\|^.*Pictures.*$;
open ftp://$USER:$PASS@$HOST;
lcd $LCD;
cd $RCD;
mirror --verbose"
Also note that if you have contacts that are already set to sync by MFE, then they won't sync to syncml or even a second MFE account.

Hope that helps!

Last edited by quipper8; 2012-03-02 at 08:24.
 

The Following 6 Users Say Thank You to quipper8 For This Useful Post: