Closed dustinrue closed 3 years ago
Hey @dustinrue what OS's have you tested in this in?
macOS and CentOS. I did not try WSL but I could. Everything used are pretty standard Unix/Linux Utica though
Can anyone else give this a test?
@tlovett1 Tested on CentOS Linux release 7.6.1810 (Core)
and this PR fixes the gzip: invalid option -- 'k'
issue.
@tlovett1 any updates on your review of this PR?
This error is currently blocking me on a project, can we look at this one again? If it works on Mac and Centos we should be good, these are all standard lib tools.
Description of the Change
When trying to use wpsnapshots on CentOS 7 the database extraction will fail because it ships with an older version of gzip that doesn't understand the
-k
option. This PR modifies the extraction process to avoid the issue while still keeping the original file.Alternate Designs
Benefits
This will allow wpsnapshots to work across more operating systems.
Possible Drawbacks
I don't know if this will increase memory usage of the process.
Verification Process
I tested this on my mac and tested the same command on CentOS Linux. It worked on both
Checklist:
Applicable Issues
No issue was opened for this
Changelog Entry
More cross platform friendly database extraction method