I'm trying to create a backup script using FreeBSD's dump to take a snapshot of a filesystem, but instead of storing the snapshot on disk I want to pipe the output from dump into cURL or rsync so its stored remotely. I've got it working piped via SSH to dd the output to the remote end, however I need to use cURL or rsync to do it for security reasons.
I've tried a number of different command line arguments:
dump -0u -a -L -f - /dev/ad0b | curl -v --data @- http://184.108.40.206/ dump -0u -a -L -P "curl -v --data - http://220.127.116.11/" /dev/ad0b dump -0u -a -L -P "rsync --progress --stats rsync://18.104.22.168/backup" /dev/ad0b
No matter what I do I either get a broken pipe or just no data coming through.
I can manually dump it to a file then upload this via cURL or rsync, but this defeats the purpose of what i'm trying to do.
Any help or pointers would be awesome.