bitreich-drist

fork of bitreich.org/drist
git clone git://git.pyratebeard.net/bitreich-drist.git
Log | Files | Refs | README | LICENSE

commit 85503f58e13e10b2b34e3a00a659b896d4aea33c
parent b3a105e7a4e3b7da26d9ed9c6724c34948f0ac4a
Author: Solene Rapenne <solene@perso.pw>
Date:   Sun, 11 Oct 2020 15:00:54 +0200

Preserve time of copied files

Diffstat:
Mdrist | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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