Mercurial > hg > config
annotate 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 | 107bf2430602 |
rev | line source |
---|---|
911
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
1 #!/usr/bin/env bash |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
2 |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
3 # Alternative to silvermirror + unison |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
5 set -euxo pipefail |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
6 |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
7 # https://stackoverflow.com/questions/1602324/how-do-i-synchronize-in-both-directions |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
8 # https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
9 |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
10 SRC="${HOME}/docs" |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
11 |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
12 mkdir -p "${SRC}" |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
13 rsync -au k0s.org:"${SRC}"/ "${SRC}" |
6fbbe5f0bc6b
add silvermirror/unison alternative
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
14 rsync -au "${SRC}"/ k0s.org:"${SRC}" |