This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Syncing two computers via FTP

Tags: None
(comma "," separated)
tcrass
Registered Member
Posts
15
Karma
0
OS

Syncing two computers via FTP

Fri Feb 04, 2011 12:34 pm
Hi there,

for years I've been trying to get the following -- as I thought: simple -- setup to work with Kalendar, but since I couldn't come up with a really satisfying solution I finally decided to seek help in the forum.

The setting is:
- a desktop computer, permanently connected to the internet
- a laptop computer, only occasionally connected to the internet
- an FTP server, somewhere on the internet

What I'd like to achieve is to be able to manage my calendar entries on any ot the two computers, using the FTP server for synchronizing them.

First thing I tried was using "remote calendar resources". The main problem I encountered was that no calendar entries were shown on Kalendar startup if the network was down -- obviously, there is no such thing like a caching mechanism implemented.

Next thing I tried was using Akonadi to wrap a remote resource. This didn't help to improve the situation, though -- when launching Kalendar without a network connection, the calendar items sometimes showed up, whereas on other occasions they didn't. I also was unable to figure out when local changes, which were entered while off-line, got pushed to the FTP server after reconnecting and when they didn't. Finally, no true synchronization seemed to be performed -- either the local calendar data overwrote the remote file, or vice versa.

So am I missing something, or is it really impossible to set up Kalendar to properly work within the scenario mentioned above?

Any help (inlcuding alternative working synchronization scenarios) welcome!

Regars --

tcrass
SyncMaster
Registered Member
Posts
121
Karma
0
OS

Re: Syncing two computers via FTP

Fri Feb 04, 2011 8:49 pm
My thoughts on your problem:

- Forget the FTP server. Use Dropbox. It will sync automatically both ways.
- Use Akonadi Control center and add a resource of VCAL type on both computers pointing to a working directory *inside* you dropbox folder.

It should work this way.
tcrass
Registered Member
Posts
15
Karma
0
OS

Re: Syncing two computers via FTP

Sat Feb 05, 2011 1:20 pm
SyncMaster,

SyncMaster wrote:My thoughts on your problem:

- Forget the FTP server. Use Dropbox. It will sync automatically both ways.
- Use Akonadi Control center and add a resource of VCAL type on both computers pointing to a working directory *inside* you dropbox folder.

It should work this way.


thanks for the hint -- I am, however, somewhat reluctant to give away my calendar data to some server I don't have any control over. Furhtermore, I'd like to go along the open-source line as long as possible.

Regards --

tcrass

P.S. I'm starting to think of something like executing a script before and after running Kalendar which would

- download the iCal file from my FTP server
- sync it with a local calendar resource via OpenSync
- and upload the modified calendar back to the FTP server

There aren't any defined callbacks within Kalendar which would allow to execute such a script after, say, every change, are there?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Syncing two computers via FTP

Sun Feb 06, 2011 1:04 am
Akonadi should have properly handled the case of being offline, allowing you to see your calendar entries still, so that is a bug.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
tcrass
Registered Member
Posts
15
Karma
0
OS

Re: Syncing two computers via FTP

Tue Feb 08, 2011 4:26 pm
bcookslay,

bcooksley wrote:Akonadi should have properly handled the case of being offline, allowing you to see your calendar entries still, so that is a bug.


yeah, I too thought that it was supposed to handle the off-line state properly, but since Akonadi keept Korganizer busy for minutes after launch (you could actually watch the events showing up in the calendar ony by one) I finally refrained from doing further test.

My "first download remote calendar, then sync with local calendar, then back upload, then run Korganizer, then do the whole download-sync-upload cycle again" approach, on the other hand, seems to kinda work -- apart from the fact that opensync (which I am using for syncing the calendar files) still isn't in any shape... :(

Regards --

tcrass


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]