comparison bin/quicksilver.sh @ 911:6fbbe5f0bc6b

add silvermirror/unison alternative
author Jeff Hammel <k0scist@gmail.com>
date Sun, 14 Apr 2024 15:00:41 -0700
parents
children
comparison
equal deleted inserted replaced
910:98bcf207cda3 911:6fbbe5f0bc6b
1 #!/usr/bin/env bash
2
3 # Alternative to silvermirror + unison
4
5 set -euxo pipefail
6
7 # https://stackoverflow.com/questions/1602324/how-do-i-synchronize-in-both-directions
8 # https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories
9
10 SRC="${HOME}/docs"
11
12 mkdir -p "${SRC}"
13 rsync -au k0s.org:"${SRC}"/ "${SRC}"
14 rsync -au "${SRC}"/ k0s.org:"${SRC}"