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://22.214.171.124/ dump -0u -a -L -P "curl -v --data - http://126.96.36.199/" /dev/ad0b dump -0u -a -L -P "rsync --progress --stats rsync://188.8.131.52/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.