diff options
author | merakor <cem@ckyln.com> | 2020-06-25 07:02:13 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-06-25 07:02:13 +0000 |
commit | 6d86ce790641c91c3a6b3b37dbbadb9471bfc338 (patch) | |
tree | e98fceb131b93f555f4306fc23e0f7368330c334 | |
parent | a7192859e7257edf050ea12ec5a71a858b209520 (diff) | |
download | cpt-6d86ce790641c91c3a6b3b37dbbadb9471bfc338.tar.gz |
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.
FossilOrigin-Name: 594a551f3fe5c877b45ce6e54e4a85305acd31cd1095e39aa164b93b8a01952e
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |