-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive stdin or fifo #22
Comments
This could be used to backup any type of streamed data. |
I would really like that feature, too. I intend to use attic to archive virtual machine images. |
see PR #208. |
Can someone explain the use case for a fifo? |
I'd like to add a use case -- backing up a Postgresql database, by piping |
You can have a generic attic script that calls tasks before running the backup tasks (pre-run) and tasks after running the backup (post-run). That way you do not have to change your script to arrange the pipes each time you want a different pipe to attic. You will just create a pre-run script that possibly creates the fifo and then attaches to it as input, and perhaps a post-run script that does any clean up you may want. That way you can just add to your generic attic script configuration the pre-run and post-run scripts and also add the fifo path in the includes (maybe with a prefix to let attic know that it should open it as a fifo and read it, e.g. "fifo:/path/to/fifo"). |
Regarding the stream:
i.e. we could have --stdin-name and --stdin-format |
@ThomasWaldmann I want a pipe alright, and I also want to name the incoming file (so that it isn't simply stored as "stdin"), just as backing up directories preserves filenames. See my comments at PR #208 |
@ThomasWaldmann Yes. It would help at abstracting piping logic out of scripting attic, which architecturally is not a bad idea imho. Also, fifos created and used by other tools may already exist in your systems and you may also want to attach to and read them to a backup archive. |
(From http://librelist.com/browser//attic/2014/1/2/feature-request-archive-stdin-or-fifo/)
Hi,
first of all thanks to Jonas for developing attic. I am using attic
since 4 weeks on Debian and that's a great tool for doing backup with
deduplication. I am excited about the dedup ratio (original size vs.
unique data) achieved in my single repository although throwing in
different backup sources (tar, mysqldump) from different machines.
I would like to send a feature request here because i dont't have a
github account:
Like (all) the other Unix/Linux tools attic should be able to open
stdin or a fifo for backup and dedup the stream until eof. And of
course it should be possible to extract these archives to stdout.
Greetings,
Matthias.
The text was updated successfully, but these errors were encountered: