Скрипты для Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
306 B

#!/bin/bash
# Двухсторонняя синхронизация
# Использование:
# ./2sync src dest [opt1] [opt2]
src=$1
dest=$2
opt1=$3
opt2=$4
rsync -r -t -v $opt1 $opt2 --progress -s --omit-dir-times $src $dest
rsync -r -t -v $opt1 $opt2 --progress -s --omit-dir-times $dest $src