targz icon indicating copy to clipboard operation
targz copied to clipboard

Unable to extract compressed file.

Open raviabhiramopex opened this issue 7 years ago • 1 comments

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.

raviabhiramopex avatar Nov 10 '17 14:11 raviabhiramopex

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.

erbhargavvyas avatar Jan 21 '21 11:01 erbhargavvyas