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

Unable to extract compressed file. #3

Open
raviabhiramopex opened this issue Nov 10, 2017 · 1 comment
Open

Unable to extract compressed file. #3

raviabhiramopex opened this issue Nov 10, 2017 · 1 comment

Comments

@raviabhiramopex
Copy link

I used this module to compress a postgres database backup. This backup is saved as dbBackup.sql and the compressed file I want is db_dump.tar.gz. I passed to the compress source as path to the .sql file and destination as path to the db_dump.tar.gz.
This gets created without any issue, but when I try decompressing it, I get the following:

tar -xvzf archive.tar.gz  
.  
tar: .: Cannot open: Is a directory  
tar: Exiting with failure status due to previous errors

I also tried decompressing using the decompress function by reversing the parameters and still get a similar error.

@erbhargavvyas
Copy link

The src has to be a folder.
It compresses the whole folder. If there are more files in the folder use ignore option not to include other files in the tar.gz.

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

No branches or pull requests

2 participants