10 lines
162 B
Bash
10 lines
162 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ ! "$#" = 2 ]; then
|
||
|
echo "Usage: $0 [src-dir/] [dest-dir/]"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
rsync -avhcz -e ssh --stats --progress --delete --force "$1" "$2"
|
||
|
|