duplicity is a CLI tool for encrypted network backups using GPG and librsync, often used over SSH.
librsync