syntaxseed,
@syntaxseed@phpc.social avatar

Wrote a script to use WP-CLI to dump the database, then to sync the files to Dropbox.

It pings HealthChecks.io to monitor progress & success/fail.

That was finally working well. 👍

Then calling it from a revealed the need to use full paths to commands like & WP-CLI. Took a bit to find (force) the logging of the cron to see what was wrong.

Still unclear why some commands (curl, etc) work fine.

Anyway... this is coming along!

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@syntaxseed There was a mysql cloning script I used to run that auto-rotated backups, rolled them up when the month had passed. I can't remember what it used or was called, but it was designed to backup mysql, not wordpress. The benefits of such an approach are that the backup is pure SQL, and years of others learnings can help.

syntaxseed,
@syntaxseed@phpc.social avatar

The nice thing, is using the sync mode of #Rclone means the initial upload took ages but successive backups only do the changed files so it's pretty quick.

Also had to debug ways to ease back the rate limiting from #Dropbox, luckily there was some good info about this in the Rclone discussion forums.

It cracks me up that Rclone refuses to sync Thumbs.db files. It spits an error when it encounters them. Even file copy utilities hate these! 🤣 This was an effective way to find and purge these.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed curl and what not are in system bin paths where the wp-cli is likely just loaded locally/for that bash profile.

syntaxseed,
@syntaxseed@phpc.social avatar

@bhhaskin Ahhh right. That makes sense.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Bash
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • magazineikmin
  • khanakhh
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • everett
  • cisconetworking
  • kavyap
  • tacticalgear
  • InstantRegret
  • JUstTest
  • Durango
  • osvaldo12
  • ethstaker
  • modclub
  • GTA5RPClips
  • Leos
  • cubers
  • tester
  • normalnudes
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines