X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=bkmk-rsync;h=463039389b6b2da412b3264a7b76b8a078df383e;hp=330b1d329d43df9941dc2e104fd5f78f514f0438;hb=96e39d55c791326368ff14d538850e14ba5a2c97;hpb=abed44f9ee0fdb666adbda6d68962cd1ed5b1303 diff --git a/bkmk-rsync b/bkmk-rsync index 330b1d3..4630393 100755 --- a/bkmk-rsync +++ b/bkmk-rsync @@ -1,15 +1,18 @@ #! /bin/sh +# Synchronize bookmarks with remote workstations +# +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +# __license__ = "GNU GPL" -remote_server=sun +. "`dirname \"$0\"`"/set-path +umask 077 -PATH=$HOME/lib/bookmarks_db:$PATH +bkmk2db || exit 1 +db2bkmk.py || exit 2 +diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out -cd "$HOME/work" -mz2ns -mv bookmarks.html "$HOME/.netscape/bookmarks.html" - -exec rsync -vz "$HOME/.netscape/bookmarks.html" "$remote_server:.netscape" # && \ - -#rsync -vz "$HOME/Internet/WWW/phd.pp.ru/Bookmarks/bkmk-koi.html" \ -# "$HOME/Internet/WWW/phd.pp.ru/Bookmarks/bkmk-win.html" \ -# "$remote_server:Internet/WWW/phd.pp.ru/Bookmarks" +distribute -A -r .mozilla bookmarks.html +exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"