I am trying to find a solution of backing up my server to a remote server. The key is to do this securely without having files placed directly on the server I am trying to back up. Here is what I am trying to do:
root@localhost$ tar -cz /path/to/backup | ssh firstname.lastname@example.org 'dd of=/path/to/store/backup.tar.gz'
However, this prompts me for "backupusr's" password, which I don't want since I will be using this in a script. The backupusr has public/private keys so if I am logged in as the backupusr and ssh to remote.host.com, I log right in without a password.
For security purposes, I do not want to mount an NFS share nor use Samba. Any ideas?