Restic: Allow dumping files to stdout

Created on 8 May 2016  ·  3Comments  ·  Source: restic/restic

This is a followup issue to #255: Find a place and implement a command or option that allows dumping a file from a snapshot to stdout.

This allows the following use case:

  • Backup an SQL dump with restic: mysqldump | restic backup --stdin --stdin-filename production.sql
  • Restore it directly: restic cat-file-to-stdout $SNAPSHOTID production.sql | mysql
feature enhancement

Most helpful comment

Should have been restore --stdout instead of dump, to be coherent with backup --stdin.

All 3 comments

Also somewhat useful for workarounds like the one suggested in https://github.com/restic/restic/issues/949

This is done in #1346, there's the new dump command. I'm closing this issue.

Should have been restore --stdout instead of dump, to be coherent with backup --stdin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheLastProject picture TheLastProject  ·  3Comments

reallinfo picture reallinfo  ·  4Comments

christian-vent picture christian-vent  ·  3Comments

fbartels picture fbartels  ·  3Comments

jpic picture jpic  ·  3Comments