Preserve time of copied files - drist - a remote deployment tool
HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 85503f58e13e10b2b34e3a00a659b896d4aea33c
DIR parent b3a105e7a4e3b7da26d9ed9c6724c34948f0ac4a
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Sun, 11 Oct 2020 15:00:54 +0200
Preserve time of copied files
Diffstat:
M drist | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/drist b/drist
@@ -23,7 +23,7 @@ copy_files() {
then
printf 'Copying files from "%s" to temporary directory %s:\n' "$1" "$3"
find "${1}"/ -type f -or -type l | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ \//'
- rsync -e "ssh $SSH_PARAMS" -lD --files-from="${LIST}" "${1}/" "${2}":"/${3}"
+ rsync -t -e "ssh $SSH_PARAMS" -lD --files-from="${LIST}" "${1}/" "${2}":"/${3}"
rm "$LIST"
fi
fi