bitreich-drist

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

commit c6481050031bc54fa99a6fcfa7d3408850040883
parent 5dc65972c62ddd2b7ba962af007ad44a41bbe400
Author: Solene Rapenne <solene@perso.pw>
Date:   Wed,  1 Jul 2020 12:55:43 +0200

drist wasn't preserving permissions on files with rsync

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

diff --git a/drist b/drist @@ -64,7 +64,7 @@ copy_files() { find "${1}"/ -type f -or -type l | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ \//' if [ "$SIMULATE" -ne 1 ] then - rsync -e "ssh $SSH_PARAMS" --rsync-path="${EXEC} rsync" -lD --files-from="${LIST}" "${1}/" "${2}":/ + rsync -e "ssh $SSH_PARAMS" --rsync-path="${EXEC} rsync" -lDp --files-from="${LIST}" "${1}/" "${2}":/ fi rm "$LIST" fi