[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Piping dump to ssh
Jonathan Glass wrote:
>>Kevin O'Neill Stoll wrote:
>>
>>>Hello all,
>>>
>>>I have been trying to get this working but am not sure how
>>>else to debug other than what I have already done.
>>>
>>>I want to pipe a dump through ssh straight to a backup box.
>>>
>>>/sbin/dump 0uf - /var | ssh backup-box
>>>"/path/to/backups/filename.dump"
>>
>>Try:
>>
>>/sbin/dump 0uf - /var | ssh backup-box
>>"cat /path/to/backups/filename.dump"
>>
>>--
>
>
> Wouldn't that result in dump sending output to stdout, and cat sending
> output to stdout? Where do you redirect dump's stdout to a file?
True, typo:
/sbin/dump 0uf - /var | ssh backup-box
"cat > /path/to/backups/filename.dump"
I do something similar in backing up various boxes via tar.
--
Until later, Geoffrey Registered Linux User #108567
Building secure systems in spite of Microsoft