SaveText.Ru

Без имени
  1. #!/bin/bash
  2. pathBk=/mnt/bk/bkSync
  3. sourceDir=/mnt/net/
  4. destDir=/mnt/bk/sync
  5. dt=`date +"%Y-%m-%d-%H-%M"`
  6. echo $dt >> /root/rsync/log/$dt
  7. rsync -a -r -v -t -h --progress --exclude-from='exclude.list' -b --backup-dir=$pathBk/$dt $sourceDir $destDir >> /root/rsync/log/$dt
  8.  

Share with your friends:

Print