commit 8a1437c845d6e2ed4f69fe78a8a433278bec9c5d
parent d36eb1f49c89ca50f47780335bf1260f16ce2d18
Author: Cem Keylan <cem@ckyln.com>
Date: Thu, 25 Jun 2020 10:02:14 +0300
kiss: change rsync flags.
-c: makes sure that you sync files based on checksum instead of timestamp.
-zz: Uses rsync built-in compression method.
--include=core: Gets 'core' out of CVS ignores.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kiss b/kiss
@@ -1291,7 +1291,7 @@ pkg_fetch() {
elif [ -f .rsync ]; then
read -r remote < .rsync
if [ -w "$PWD" ] && [ "$uid" != 0 ]; then
- rsync -avzC --delete "$remote/" "$PWD"
+ rsync -acvzzC --include=core --delete "$remote/" "$PWD"
else
[ "$uid" = 0 ] || log "$PWD" "Need root to update"
@@ -1304,7 +1304,7 @@ pkg_fetch() {
[ "$user" = root ] ||
log "Dropping permissions to $user for pull"
- user=$user as_root rsync -avzC --delete "$remote/" "$PWD"
+ user=$user as_root rsync -acvzzC --include=core --delete "$remote/" "$PWD"
)
fi
else