WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

No possibility to write to stdout

View: New views
2 Messages — Rating Filter:   Alert me  

No possibility to write to stdout

by Michael Stapelberg-24 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

It would be great if GNU ddrescue could provide the possibility of writing to
stdout. This makes it possible to backup a hard disk drive to a compressed
image, like this:

    ddrescue /dev/sda - | gzip -9 > /mnt/usb-hdd/backup.img.gz

Also, it enables saving backups to a different computer via SSH etc.

Thanks!
Best regards,
Michael

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Parent Message unknown Re: No possibility to write to stdout

by Sam-237 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

> It would be great if GNU ddrescue could provide the possibility
> of writing to stdout.

I know that looks useful on the surface, but as far as I can see, it could only be used when there is no problem reading from the source (the input file).  In that case, using ddrescue is unnecessary, and dd can be used (which can write to stdout, of course).

As soon as there is any problem on the source drive, ddrescue will need to seek on the input file handle *and the output file handle*, to different locations.  How is that possible in your example, when using gzip on the output?  Am I missing something?


Regards,

Sam


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
https://lists.gnu.org/mailman/listinfo/bug-ddrescue