15 lines
405 B
Bash
15 lines
405 B
Bash
# replace default cp with rsync.
|
|
alias cp="rsync -ahP --chmod=u+w"
|
|
|
|
# copy and also merge all changes (delete dst files that do not exist in src).
|
|
alias cp_merge="rsync -ahP --chmod=u+w --delete"
|
|
|
|
# copy by creating hardlinks.
|
|
alias cp_link="/usr/bin/cp -lr"
|
|
|
|
# default cp, a.k.a builtin cp.
|
|
alias bcp="/usr/bin/cp"
|
|
|
|
# cp_merge without writing anything.
|
|
alias cp_test="rsync -ahP --chmod=u+w --delete -n"
|