<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Matt,<br><br>I believe the rdiff man page is still not correct, even with your submitted changes. It states "In every case where a filename must be specified, - may be used instead to mean either standard input or standard output as appropriate.".<br><br>I've not found that to be the case. For instance:<br><br>works:<br>$ rdiff signature r96.exe r96.sig<br><br>fails:<br>$ cat r96.exe | rdiff signature - r96.sig<br>rdiff: unknown option: -<br>Try `rdiff --help' for more information.<br><br>whereas this works:<br>$ cat r96.exe | rdiff signature &gt; r96.sig<br><br><br>or<br><br>works:<br>$ rdiff delta r96.sig r97.exe r9697.delta<br><br>fails:<br>$ cat r96.sig | rdiff delta - r97.exe r9697.delta<br>rdiff: unknown option: -<br>Try `rdiff --help' for more information.<br><br>fails:<br>$ cat r97.exe | rdiff delta r96.sig - r9697.delta<br>rdiff: unknown option: -<br>Try `rdiff --help' for more information.<br><br>whereas this works:<br>
$ cat r97.exe | rdiff delta r96.sig &gt; r9697.delta<br><br><br><br>So in the case of my remote backup script I can achieve my desired result by relying on the implied STDIN and redirecting STDOUT, which is fine for me, but it doesn't match the description in the man page. FYI these are the four commands I've created to achieve my backup without storing the backup file locally. Given a backup output file of backup_Wed.tgz, which is due to overwrite last weeks backup_Wed.tgz on the remote system:<br><br>$ ssh user@remote_host "rdiff signature backup_Wed.tgz" &gt; oldbackup.sig<br>$ tar czf - /home | rdiff delta oldbackup.sig &gt; backup.delta<br>$ cat backup.delta | ssh user@remote_host "rdiff patch backup_Wed.tgz &gt; backup_Wed.tgz.new"<br>$ ssh user@remote_host "mv backup_Wed.tgz.new backup_Wed.tgz"<br><br><br>All the best,<br>Cheers,<br>Mark<br><br><br><hr id="stopSpelling">From: mark_young@hotmail.com<br>To: rsync@lists.samba.org<br>Subject: RE: rsync of STDIN to a file.<br>Date: Tue, 24 Nov 2009 14:38:31 +0000<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


Thanks very much Matt for the rdiff command examples and for filing a request to improve the documentation.<br><br>Cheers,<br>Mark<br><br>                                               </body>
</html>