Skip to content

Instantly share code, notes, and snippets.

@calvez
Created February 3, 2022 13:05
Show Gist options
  • Save calvez/58fccbc3d98a9eaeaaa1b64aad39cc55 to your computer and use it in GitHub Desktop.
Save calvez/58fccbc3d98a9eaeaaa1b64aad39cc55 to your computer and use it in GitHub Desktop.
wp backup gzip and move with timestamp
# will be: .backup/2022-02-03-14:04:00.sql.gz
wp db export - | gzip > .backup/$(date +%F-%T).sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment