10up / wpsnapshots

(DEPRECATED) A project sharing tool for WordPress.
MIT License
216 stars 21 forks source link

alternate method for extracting the database #57

Closed dustinrue closed 3 years ago

dustinrue commented 5 years ago

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

tlovett1 commented 5 years ago

Hey @dustinrue what OS's have you tested in this in?

dustinrue commented 5 years ago

macOS and CentOS. I did not try WSL but I could. Everything used are pretty standard Unix/Linux Utica though

tlovett1 commented 4 years ago

Can anyone else give this a test?

dinhtungdu commented 4 years ago

@tlovett1 Tested on CentOS Linux release 7.6.1810 (Core) and this PR fixes the gzip: invalid option -- 'k' issue.

jeffpaul commented 4 years ago

@tlovett1 any updates on your review of this PR?

jasondewitt commented 4 years ago

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.