Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there any way to set my own dropbox-like server? [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1070
Location: Edinburgh, UK

PostPosted: Thu Jan 31, 2013 1:38 pm    Post subject: Reply with quote

Fran wrote:
Unison doesn't watch directories (so you're stuck with cron) and doesn't keep old versions of modified/deleted files, IIRC.


Both true, though at least on Linux you can outsource the folder-watching to the kernel (inotify / fanotify / whatever it is this week). For example with a simple script you could use the inotifywatch tool to watch the local sync folder, and run unison when changes are made. Of course this is no good if you expect changes coming down from the server (ie if someone else is going to be working on another sync'd client at the same time as you), but in that instance you probably want to be using a full-fledged VCS and handling the sync/conflict process manually.

Mind you, unison is pretty efficient anyway so a cron-based polling approach needn't be ruled out immediately. If you haven't experienced running it periodically, you should also know that successive runs are much faster in the comparing stage than the first run. (I think this may be because the instance on the server stays alive for a while after running.)

As for "very old", Unison is still actively maintained, it's just that it's pretty much finished as far as the authors are concerned. Nothing wrong with that :)
Back to top
View user's profile Send private message
smartass
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 189
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Fri Feb 01, 2013 7:41 am    Post subject: Reply with quote

sparklesphere?
Back to top
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 518
Location: Coruña (Spain)

PostPosted: Fri Feb 01, 2013 9:13 am    Post subject: Reply with quote

Havin_it wrote:
...

Unison doesn't seem to have anything over DVCS-autosync. Maybe it's more efficient, but I need version control.

smartass wrote:
sparklesphere

Sparkleshare? :P
Code:

# USE="geoloc gstreamer" emerge -pv sparkleshare

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-text/docbook-dsssl-stylesheets-1.79  272 kB
[ebuild  N     ] app-text/docbook-sgml-dtd-3.0-r3:3.0  43 kB
[ebuild  N     ] sys-apps/paxctl-0.7-r2  8 kB
[ebuild  N     ] dev-libs/libtasn1-2.14  USE="-doc -static-libs" 1,931 kB
[ebuild  N     ] app-crypt/p11-kit-0.14  USE="-debug" 534 kB
[ebuild  N     ] dev-libs/nettle-2.6:0/4  USE="gmp -doc -static-libs {-test}" 1,354 kB
[ebuild  N     ] dev-lang/orc-0.4.16-r1  USE="-examples -static-libs" 653 kB
[ebuild  N     ] www-client/links-2.7:2  USE="X bzip2 deprecated gpm jpeg ssl tiff unicode zlib -directfb -fbcon -livecd -lzma (-suid) (-svga)" 3,806 kB
[ebuild  N     ] sys-libs/libcap-ng-0.7.3  USE="-python -static-libs" 384 kB
[ebuild  N     ] app-text/scrollkeeper-dtd-1.0:1.0  11 kB
[ebuild  N     ] app-text/opensp-1.5.2-r3  USE="nls -doc -static-libs {-test}" 1,486 kB
[ebuild  N     ] app-text/iso-codes-3.40  3,549 kB
[ebuild  N     ] app-text/openjade-1.3.2-r5  USE="-static-libs" 874 kB
[ebuild  NS    ] sys-devel/automake-1.10.3:1.10 [1.11.6:1.11, 1.13.1:1.13] 936 kB
[ebuild  N     ] net-libs/gnutls-3.1.6  USE="cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs {-test}" LINGUAS="-cs -de -en -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN" 4,906 kB
[ebuild  N     ] media-libs/gstreamer-0.10.36:0.10  USE="introspection nls orc {-test}" 2,955 kB
[ebuild  N     ] gnome-base/gsettings-desktop-schemas-3.6.1  USE="introspection" 376 kB
[ebuild  N     ] media-libs/gst-plugins-base-0.10.36:0.10  USE="introspection nls orc" 2,309 kB
[ebuild  N     ] dev-util/gdbus-codegen-2.34.3  PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild  N     ] app-text/scrollkeeper-9999-r1  0 kB
[ebuild  N     ] app-text/rarian-0.8.1-r2  USE="-static-libs" 449 kB
[ebuild  NS    ] app-text/docbook-xml-dtd-4.3-r1:4.3 [4.1.2-r6:4.1.2] 82 kB
[ebuild  NS    ] app-text/docbook-xml-dtd-4.4-r2:4.4 [4.1.2-r6:4.1.2] 94 kB
[ebuild  N     ] app-text/gnome-doc-utils-0.20.10  515 kB
[ebuild  N     ] dev-util/gtk-doc-1.18-r1  USE="-debug -doc -emacs -highlight {-test} -vim" 0 kB
[ebuild  N     ] app-misc/geoclue-0.12.99  USE="gtk -connman -geonames -gps -gsmloc -hostip -manual -networkmanager -nominatim -plazes -skyhook -static-libs -yahoo-geo" 594 kB
[ebuild  N     ] dev-dotnet/libgdiplus-2.10.9  USE="cairo" 2,026 kB
[ebuild  N     ] dev-lang/mono-2.10.9-r2  USE="-minimal -pax_kernel -xen" 33,241 kB
[ebuild  N     ] net-libs/libproxy-0.4.10-r1  USE="-gnome -kde -mono -networkmanager -perl -python -spidermonkey {-test} -webkit" 370 kB
[ebuild  N     ] dev-dotnet/glib-sharp-2.12.10:2  USE="-debug" 1,601 kB
[ebuild  N     ] dev-dotnet/gtk-sharp-gapi-2.12.10:2  USE="-debug" 0 kB
[ebuild  N     ] dev-dotnet/dbus-sharp-0.7.0-r1  125 kB
[ebuild  N     ] net-libs/glib-networking-2.34.2  USE="gnome libproxy ssl -smartcard {-test}" 339 kB
[ebuild  N     ] app-crypt/gcr-3.6.2:0/1  USE="introspection -debug {-test}" 1,334 kB
[ebuild  N     ] net-libs/libsoup-2.40.2:2.4  USE="introspection ssl -debug -samba {-test}" 691 kB
[ebuild  N     ] dev-dotnet/pango-sharp-2.12.10:2  USE="-debug" 0 kB
[ebuild  N     ] dev-dotnet/dbus-sharp-glib-0.5.0  94 kB
[ebuild  N     ] dev-dotnet/atk-sharp-2.12.10:2  USE="-debug" 0 kB
[ebuild  N     ] net-libs/webkit-gtk-1.8.3-r200:2  USE="geoloc gstreamer introspection jit webgl (-aqua) -coverage -debug -spell {-test}" 7,631 kB
[ebuild  N     ] dev-dotnet/gdk-sharp-2.12.10:2  USE="-debug" 0 kB
[ebuild  N     ] dev-dotnet/gtk-sharp-2.12.10:2  USE="-debug" 0 kB
[ebuild  N     ] dev-dotnet/webkit-sharp-0.3-r1  87 kB
[ebuild  N     ] dev-dotnet/notify-sharp-0.4.0_pre20090305  USE="-doc" 78 kB
[ebuild  N     ] gnome-base/gnome-keyring-3.6.2  USE="caps pam -debug (-selinux) {-test}" 1,114 kB
[ebuild  N     ] gnome-base/libgnome-keyring-3.6.0  USE="introspection -debug {-test} -vala" 414 kB
[ebuild  N     ] net-libs/libsoup-gnome-2.40.2:2.4  USE="introspection -debug" 0 kB
[ebuild  N     ] gnome-base/gvfs-1.14.2  USE="cdda gtk http udev -afp -archive -avahi -bluetooth -bluray -doc -fuse -gdu -gnome-keyring -gphoto2 -ios -samba -systemd -udisks" 1,434 kB
[ebuild  N     ] net-misc/sparkleshare-1.0.0  631 kB

Total: 48 packages (45 new, 3 in new slots), Size of downloads: 79,314 kB


All this to replace a 668 SLOC python script + git :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum