Tag Archives: rsync

Remote encrypted backup using gpg and rsync

Bare bones script to encrypt and copy all .pdf, .xls and .csv files in current directory to a remote server using rsync (I recommend rsync.net) #! /bin/bash R_USER=”<your_user>” R_HOST=”<your_host>” BASENAME=`basename “$PWD”` echo “Your destination:” read GPG_DEST find . -iname ‘*[pdf|xls|csv]‘ -exec echo ‘{}’ \; | while read f do if [ ! -f "$f".gpg ]; [...]