# Contact <francois.fleuret@idiap.ch> 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
cat <<EOF
Usage: rsync-luks.sh <source file> <dest file>
-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
# Ask for confirmation and synchronize
echo "**********************************************************************"
-echo "* Synchronize [y]/N ?"
+echo "* Press 'y' to synchronize, anything else to cancel."
read -n 1 KEY