Skip to content

Instantly share code, notes, and snippets.

@mehrshaddarzi
Last active January 23, 2024 07:16
Show Gist options
  • Save mehrshaddarzi/349537b621bc32d787fd29161353aef1 to your computer and use it in GitHub Desktop.
Save mehrshaddarzi/349537b621bc32d787fd29161353aef1 to your computer and use it in GitHub Desktop.
WordPress CronJob
```
mysqldump --column-statistics=0 --no-tablespaces --host="localhost" --user="xxxx" --password="xxx" "db_name" | gzip > ~/.backup-database/db_`date +\%Y-\%m-\%d_\%H-\%M-\%S`.sql.gz
```
```
wget -q -O - https://xxxx.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
```
```
wget -O /dev/null --spider --no-cache "https://xxx.com/?_sepidar_cron=product" >/dev/null 2>&1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment