tree when rsync

This commit is contained in:
Maciej Krok 2017-02-26 13:13:55 +01:00
parent c6b4a439d9
commit 2436b162ee

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
if [ $# -eq 2 ]; then if [ $# -eq 2 ]; then
tree -ha --du "$1"
time rsync -vazh --progress --partial "$@" time rsync -vazh --progress --partial "$@"
else else
time rsync "$@" time rsync "$@"