Mercurial > hg > config
view 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 |
line wrap: on
line source
#!/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}"