From: Francois Fleuret Date: Wed, 23 Jul 2014 10:11:06 +0000 (+0200) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=56758159a2d6ce0599166d86f53b46b6ccac54af;p=scripts.git Update. --- diff --git a/rsync-luks.sh b/rsync-luks.sh index 87daf19..1b244c2 100755 --- a/rsync-luks.sh +++ b/rsync-luks.sh @@ -17,11 +17,6 @@ # Contact for comments & bug reports # ######################################################################### -# This script takes two filenames as arguments, mounts them as luks -# volumes, and synchronizes their contents. - -# IT CHANGES THE CONTENT OF THE SECOND ARGUMENT - set -e set -o pipefail @@ -29,9 +24,9 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then cat < -Mounts both files as LUKS volume and rsync the source to the dest. It -first performs a dry-run and then asks for interactive confirmation -before synchronizing for real. +Mounts both files as LUKS volumes and rsyncs the source to the +dest. It first performs a dry-run and then asks for interactive +confirmation before synchronizing for real. Comments and bug reports to francois@fleuret.org @@ -86,7 +81,7 @@ rsync -n --itemize-changes --delete --progress -axz "${VOL_SRC}/" "${VOL_DST}/" # Ask for confirmation and synchronize echo "**********************************************************************" -echo "* Synchronize [y]/N ?" +echo "* Press 'y' to synchronize, anything else to cancel." read -n 1 KEY