# HG changeset patch # User Jeff Hammel # Date 1713132041 25200 # Node ID 6fbbe5f0bc6b31f6d0c099eeb833b8eb801bad25 # Parent 98bcf207cda3be261b3550d7856247f35db757c9 add silvermirror/unison alternative diff -r 98bcf207cda3 -r 6fbbe5f0bc6b bin/quicksilver.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/quicksilver.sh Sun Apr 14 15:00:41 2024 -0700 @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Alternative to silvermirror + unison + +set -euxo pipefail + +# https://stackoverflow.com/questions/1602324/how-do-i-synchronize-in-both-directions +# https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories + +SRC="${HOME}/docs" + +mkdir -p "${SRC}" +rsync -au k0s.org:"${SRC}"/ "${SRC}" +rsync -au "${SRC}"/ k0s.org:"${SRC}"