# HG changeset patch # User Jeff Hammel # Date 1716843586 25200 # Node ID 107bf24306024b8b4eaac2690b5b475cdf031173 # Parent 5d9c08d2a090d6d0f23bbac7388c84467a2cd6b2 update with future work + links diff -r 5d9c08d2a090 -r 107bf2430602 bin/quicksilver.sh --- a/bin/quicksilver.sh Wed May 01 14:39:53 2024 -0700 +++ b/bin/quicksilver.sh Mon May 27 13:59:46 2024 -0700 @@ -7,8 +7,14 @@ # 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 +# TODO: loop over directories? SRC="${HOME}/docs" +# TODO?: add -zP flags; from +# https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories +# 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: +# 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: + mkdir -p "${SRC}" rsync -au k0s.org:"${SRC}"/ "${SRC}" rsync -au "${SRC}"/ k0s.org:"${SRC}"