]> git.somenet.org - somenet/homesync.git/blob - dotstore.sh
4f6a868fee3684ebc35a7e82c045cb91d7d3d350
[somenet/homesync.git] / dotstore.sh
1 #!/bin/bash
2
3 SLEEPTIME=5
4 echo "Will sync settings in ${HOME} TO server in ${SLEEPTIME} sec..."
5 sleep $SLEEPTIME
6 rsync -vaPpx --delete --delete-excluded --sparse --rsync-path='mkdir -p HOMESYNC_dots/'`hostname`' && rsync' --exclude='.cache' --exclude='.local/share/Trash' --include='.**' --exclude='*' "$HOME"/ "home.somenet.org:HOMESYNC_dots/`hostname`/"