rsync: add partial dir

This commit is contained in:
gwentgod 2023-08-28 15:11:34 +08:00
parent c9c716e9c1
commit 2db1f314dd
2 changed files with 5 additions and 6 deletions

@ -1 +1 @@
Subproject commit 017395a266aa15011c09e64e44a1c98ed91c478c
Subproject commit 0af598cbed78660066f8a8f4465844501ba5695b

View file

@ -17,8 +17,7 @@ pmodload 'helper'
# Aliases
#
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive \
--hard-links --one-file-system'
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system --partial-dir=rsync'
autoload -Uz is-at-least
if is-at-least 3.1 ${"$(rsync --version 2>&1)"[(w)3]}; then
@ -30,9 +29,9 @@ if is-at-least 3.1 ${"$(rsync --version 2>&1)"[(w)3]}; then
# macOS Enhancements
# https://bombich.com/kb/ccc5/credits
if is-darwin && grep -q 'file-flags' <(rsync --help 2>&1); then
_rsync_cmd="${_rsync_cmd} --crtimes --fileflags --force-change"
fi
# if is-darwin && grep -q 'file-flags' <(rsync --help 2>&1); then
# _rsync_cmd="${_rsync_cmd} --crtimes --fileflags --force-change"
# fi
fi
alias rsync-copy="${_rsync_cmd}"