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

mholt picture mholt  路  4Comments

axllent picture axllent  路  4Comments

fd0 picture fd0  路  4Comments

cfbao picture cfbao  路  3Comments

TheLastProject picture TheLastProject  路  3Comments