projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71bcbb9
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 23 Jul 2014 10:11:06 +0000
(12:11 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 23 Jul 2014 10:11:06 +0000
(12:11 +0200)
rsync-luks.sh
patch
|
blob
|
history
diff --git
a/rsync-luks.sh
b/rsync-luks.sh
index
87daf19
..
1b244c2
100755
(executable)
--- a/
rsync-luks.sh
+++ b/
rsync-luks.sh
@@
-17,11
+17,6
@@
# Contact <francois.fleuret@idiap.ch> for comments & bug reports #
#########################################################################
# 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
set -e
set -o pipefail
@@
-29,9
+24,9
@@
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
cat <<EOF
Usage: rsync-luks.sh <source file> <dest file>
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 volume
s 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
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 "**********************************************************************"
# Ask for confirmation and synchronize
echo "**********************************************************************"
-echo "*
Synchronize [y]/N ?
"
+echo "*
Press 'y' to synchronize, anything else to cancel.
"
read -n 1 KEY
read -n 1 KEY