]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-rsync
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / bkmk-rsync
index b8193827bf549091666477cb8d1c17514ff7ca62..4754f05776d2bc410e45f64bec7105b6abe67d3d 100755 (executable)
@@ -1,9 +1,18 @@
 #! /bin/sh
+# Synchronize bookmarks with remote workstations
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
+# __license__ = "GNU GPL"
 
-remote_server=sun
+. "`dirname \"$0\"`"/set-path
+umask 077
 
-rsync -avz "$HOME/.netscape/bookmarks.html" "$remote_server:.netscape" # && \
+bkmk2db || exit 1
+db2bkmk.py || exit 2
+diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out
 
-#rsync -avz "$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"