Skip to content

Instantly share code, notes, and snippets.

@joseamirandavelez
Last active March 24, 2017 04:24
Show Gist options
  • Save joseamirandavelez/e49e56494fba1ce2c716c404b56e5e58 to your computer and use it in GitHub Desktop.
Save joseamirandavelez/e49e56494fba1ce2c716c404b56e5e58 to your computer and use it in GitHub Desktop.
One liner for backing up wordpress files, and reinstall core
mkdir FIX; cp -rfp public_html/wp-content FIX/; cp -rp public_html/wp-config.php FIX; rm -rf public_html/*; cp -rfp FIX/* public_html/; cd public_html/; wp core download --allow-root
Find files modified by date
find . -type f -name '*.php' -newermt 2017-03-22 ! -newermt 2017-03-23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment