scripts

Scripts for general automations
git clone git://git.laack.co/scripts.git
Log | Files | Refs

sync.sh (353B)


      1 #!/bin/bash
      2 
      3 echo "==== RUNNING ====" | tee -a /home/andrew/logs/sync.log
      4 date | tee -a /home/andrew/logs/sync.log
      5 unison ~/syncing ssh://brgr//home/shared/fileSharing/syncing -auto -batch 2>&1 \
      6   | sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' \
      7   | tr -d '\r' \
      8   | tee -a /home/andrew/logs/sync.log
      9 echo "==== STOPPING ====" | tee -a /home/andrew/logs/sync.log
     10