<div dir="ltr"><div>Hello,<br></div><div><br></div><div>Some days already passed and no word on the topic yet, so I am not sure whether it got forgotten or ... Also not sure whether it is a good idea to send a reminder like this but ...<br></div><div><br></div><div>Anyway on the topic I have also checked task list in phabricator and identified<span class="gmail-phui-crumb-view gmail-phabricator-last-crumb"><span class="gmail-phui-crumb-name"> <b><span class="gmail-phui-crumb-view gmail-phabricator-last-crumb"><span class="gmail-phui-crumb-name">T4675 - <span>Implement a scheduling of sending files</span></span></span></b> as one that could be solved together with an implementation of this plugin.</span></span></div><div><br></div><div>-Viktor<br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Viktor Porvaznik</b> <span dir="ltr"><<a href="mailto:viktor.porvaznik@gmail.com">viktor.porvaznik@gmail.com</a>></span><br>Date: lun., 14 ene. 2019 a las 17:19<br>Subject: Re: File synchronization plugin idea<br>To: <<a href="mailto:kdeconnect@kde.org">kdeconnect@kde.org</a>><br></div><br><br>
<div text="#000000" bgcolor="#FFFFFF">
<div dir="ltr">
<div dir="ltr">
<div>Hi,<br>
<br>
So I finally managed to finish the file sync plugin so I you
can see what I mean. <br>
</div>
<div><br>
</div>
<div>The prototype is at <a href="https://github.com/porvik/kdeconnect-kde/tree/sync" target="_blank">https://github.com/porvik/kdeconnect-kde/tree/sync</a></div>
<div><br>
</div>
<div>Of course there is still a lot of stuff to fix / implement
e.g.:</div>
<div>* proper plugin level configuration - files, logs, mount
paths etc</div>
<div>* unidirectional sync</div>
<div>* more safety checks (paths, existing folders, validations)<br>
</div>
<div>* asynchronous copy / script execution</div>
<div>* Android notifications and the actual app<br>
</div>
<div>* etc.</div>
<div><br>
</div>
<div>I you plan to run it probably need to edit common.h general
section, i.e. mount root, etc.</div>
<div>and to actually run it just send a ping from the android
(app is missing still).<br>
</div>
<div><br>
</div>
<div>Said all that, my idea is not to replace any full fledged
sync SW but rather to make it an extra feature with limited
but features. I also checked the existing code (<a href="https://cgit.kde.org/kdeconnect-kde.git/log/?h=filesync" target="_blank">https://cgit.kde.org/kdeconnect-kde.git/log/?h=filesync</a>)
and the main difference is that data is transferred as a
network packet payload unlike me, since I have static
configuration and I use SFTP plugin.<br>
</div>
<div><br>
Also about the "File access" I am not sure I know what it
means so ..?</div>
<div><br>
</div>
<div>Please tell me what you think and explain if the "File
access" if possible.<br>
</div>
</div>
<div dir="ltr">
<div><br>
</div>
<div>Thank you,</div>
<div>BR,</div>
Viktor</div>
<div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr">El vie., 21 dic. 2018 a las 10:46, <<a href="mailto:kdeconnect-request@kde.org" target="_blank">kdeconnect-request@kde.org</a>>
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded
message ----------<br>
From: Avamander <<a href="mailto:avamander@gmail.com" target="_blank">avamander@gmail.com</a>><br>
To: <a href="mailto:kdeconnect@kde.org" target="_blank">kdeconnect@kde.org</a><br>
Cc: <br>
Bcc: <br>
Date: Fri, 21 Dec 2018 11:46:15 +0200<br>
Subject: Re: File synchronization plugin idea<br>
<div dir="ltr">I think there are better file synchronization
software out there than KDE Connect ever could be, it's
simply just a lot of work, take a look at Syncthing if you
need something free. File access is another topic though
(really appreciate that feature). <br>
<br>
<br>
<br>
<br>
Avamander</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Dec 21, 2018 at 12:39 AM Nicolas
Fella <<a href="mailto:feeenico@gmail.com" target="_blank">feeenico@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">
<div>Hi,
<div dir="auto"><br>
</div>
<div dir="auto">file syncing is something that has
been requested several times and it would allow
some nice use cases. There is some old work on it
on the desktop side (<a href="https://cgit.kde.org/kdeconnect-kde.git/log/?h=filesync" target="_blank">https://cgit.kde.org/kdeconnect-kde.git/log/?h=filesync</a>)
but there is no code for Android yet. I also had
the idea of leveraging the SFTP plugin for it, but
I'm not sure if that's a good idea since it's a
bit unstable. </div>
<div dir="auto"><br>
</div>
<div dir="auto">If you have some PoC code please
share it with us so we can discuss it further.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Cheers</div>
<div dir="auto"><br>
</div>
<div dir="auto">Nico</div>
<br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Wed, Dec 19, 2018, 16:04 Viktor
Porvaznik <<a href="mailto:viktor.porvaznik@gmail.com" rel="noreferrer" target="_blank">viktor.porvaznik@gmail.com</a>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I am using kdeconnect on openSUSE and
find it very useful app. I have following
two use cases that I have solved but I was
wondering about more elegant solution (and
if it would be worth it).</div>
<div><br>
</div>
<div>First I have an encrypted pw safe data
(and possibly some other private data) that
I have on my phone, desktop, laptop. Once in
a while when I create new entry or edit an
existing one I update the pw safe db and I
need to copy that manually between all
devices. Depending on a frequency that might
be quite often. For security reasons I dont
use cloud and everything is offline only
copied over USB or private wifi. To
facilitate I was thinking to make shell
scripts that will do the job and use it
trough execute command plugin but I find
that very specific to the problem.<br>
</div>
<div><br>
</div>
<div>Second use case would be photos. I am
often taking photos (even have private cloud
backup) but I would like to have all photos
downloaded / synchronized to set folder on
my pc, and even possibly to execute some
post copy - processing shell scripts once
all photos are downloaded e.g. conversion of
photos, resize, upload to gallery.</div>
<div><br>
</div>
<div>I was thinking to write stuff just for
myself (or just keep it as shell scripts)
but then I was wondering whether it would be
maybe a good idea to make it more generic? I
was considering to implement it a plugin.
The issue is that tt would be depending on
sftp plugin which creates dependency not
only on a base app.<br>
</div>
<div><br>
</div>
<div>I would have an initial idea (even have a
crude prototype) and I have some more
technical questions if it turns out to be a
good idea. I am new to D-Bus stuff and I
find it pretty interesting, so please any
comments are welcome.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>BR,</div>
<div>Viktor<br>
</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
_______________________________________________<br>
KDEConnect mailing list<br>
<a href="mailto:KDEConnect@kde.org" target="_blank">KDEConnect@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kdeconnect" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kdeconnect</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</div></div></div>