commit 96bfb72c09602f96e47528e12908be7ab74bb37e parent ff074955ec616e6e1a170d36bcd36c470c2746c4 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 21 Sep 2018 13:50:03 +0200 Add wrapper for syncing newsboat cache to/from central server Diffstat:
A | links/bin/newsboat-sync | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/links/bin/newsboat-sync b/links/bin/newsboat-sync @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +remote="ad@idkfa.ucsd.edu" +cache="~/.newsboat/cache.db" + +rsync -raq -e 'ssh -q' "$remote":"$cache" "$cache" +newsboat +rsync -raq -e 'ssh -q' "$cache" "$remote":"$cache"