targz
targz copied to clipboard
Unable to extract compressed file.
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.
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.