Skip to content
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

Efficient pipeline #16

Open
tombruijn opened this issue Oct 11, 2014 · 1 comment
Open

Efficient pipeline #16

tombruijn opened this issue Oct 11, 2014 · 1 comment
Labels

Comments

@tombruijn
Copy link
Member

Try to keep tmp file creation to a minimum. Pipe the actual output from one command to the next in order to create more efficient commands and not hog the available space on the machine.

See also this issue on the Backup issue tracker: backup/backup#594

@epcim
Copy link

epcim commented Dec 29, 2015

+1

how about to use FIFO pipes (https://github.com/shurizzle/ruby-fifo). IE avoid complex rewrite of core, just write an resource to pipe cmd's to fifo pipe (in the archive method (when tar is being created)) and if "pipeline" is used start asynchronously syncer/uploader method which would read FIFO pipe until ( pipe is empty AND the "archive" process is finished).

This would allow some flexibility like, any CLI command in model that would be sending data to stdout would be possible to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants