fix(cp): add unique suffix to rsync backup directory for each user (#10170)
* fix(cp): add unique suffix to rsync backup directory for each user * fix(cp): use `USERNAME` rather than `USER`master
parent
aa6e932b06
commit
358ac6a141
2 changed files with 2 additions and 2 deletions
@ -1,4 +1,4 @@ |
||||
cpv() { |
||||
rsync -pogbr -hhh --backup-dir=/tmp/rsync -e /dev/null --progress "$@" |
||||
rsync -pogbr -hhh --backup-dir="/tmp/rsync-${USERNAME}" -e /dev/null --progress "$@" |
||||
} |
||||
compdef _files cpv |
||||
|
||||
Loading…
Reference in new issue