Mercurial > hg > config
comparison bin/quicksilver.sh @ 913:107bf2430602
update with future work + links
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 27 May 2024 13:59:46 -0700 |
parents | 6fbbe5f0bc6b |
children |
comparison
equal
deleted
inserted
replaced
912:5d9c08d2a090 | 913:107bf2430602 |
---|---|
5 set -euxo pipefail | 5 set -euxo pipefail |
6 | 6 |
7 # https://stackoverflow.com/questions/1602324/how-do-i-synchronize-in-both-directions | 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 | 8 # https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories |
9 | 9 |
10 # TODO: loop over directories? | |
10 SRC="${HOME}/docs" | 11 SRC="${HOME}/docs" |
12 | |
13 # TODO?: add -zP flags; from | |
14 # https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories | |
15 # If you’re transferring files that have not already been compressed, like text files, you can reduce the network transfer by adding compression with the -z option: | |
16 # The -P flag is also helpful. It combines the flags --progress and --partial. This first flag provides a progress bar for the transfers, and the second flag allows you to resume interrupted transfers: | |
11 | 17 |
12 mkdir -p "${SRC}" | 18 mkdir -p "${SRC}" |
13 rsync -au k0s.org:"${SRC}"/ "${SRC}" | 19 rsync -au k0s.org:"${SRC}"/ "${SRC}" |
14 rsync -au "${SRC}"/ k0s.org:"${SRC}" | 20 rsync -au "${SRC}"/ k0s.org:"${SRC}" |