scripts

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

keepasssync.sh (393B)


      1 #!/bin/bash
      2 
      3 #ENV variable for my notify-send when ran as cronjob
      4 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
      5 
      6 ping -c 1 192.168.1.17 >/dev/null || exit
      7 
      8 sudo rsync -a --update anders@192.168.1.17::webdav/Database.kdbx /home/anders/.kp/
      9 sudo rsync -a --update /home/anders/.kp/Database.kdbx anders@192.168.1.17::webdav/ && notify-send -i keepassxc "Keepass" "Database Synced"