scripts

random assortment of scripts
git clone git://git.andersuno.nu/scripts.git
Log | Files | Refs

timeshiftsync.sh (483B)


      1 #!/bin/bash
      2 
      3 			# ">" resets log
      4 			# ">>" appends log
      5 
      6 echo "-------------------" > /home/anders/Log/rsync.log
      7 echo "$(date +"%F %T ")" >> /home/anders/Log/rsync.log
      8 
      9 #Rsync verbose archive Hardlinks
     10 sudo rsync -v -a -H --delete --update /timeshift/ root@192.168.1.17::backup/acer/timeshift >> /home/anders/Log/rsync.log
     11 
     12 echo "Script done" >> /home/anders/Log/rsync.log
     13 echo "-------------------" >> /home/anders/Log/rsync.log
     14 echo "$(date +"%F")" > /home/anders/Log/rsync.lastrun