Created
February 3, 2022 13:05
-
-
Save calvez/58fccbc3d98a9eaeaaa1b64aad39cc55 to your computer and use it in GitHub Desktop.
wp backup gzip and move with timestamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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