Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MySQL backup script.

Featured Replies

I'm looking to create or use a script to backup a MySQL database automatically on a weekly basis.

 

I'd prefer to have the backups emailed to the client and it mustn't take any work on the clients end.

 

What do people around here use?

 

This is a custom developed PHP/MySQL site.

Generally I'll use a custom script per client, using the command line if possible to mysqldump the db, compress it and put into cloud storage. E-mailing it is OK but if the email inbox is hosted on the same server, it's actually pretty pointless

  • Author

Generally I'll use a custom script per client, using the command line if possible to mysqldump the db, compress it and put into cloud storage. E-mailing it is OK but if the email inbox is hosted on the same server, it's actually pretty pointless

 

Email is hosted on several separate servers so that shouldn't be a problem.

NB: One hiccup with automated backup scripts is the hosting servers CRON account often has insufficient permissions set to send email. So you may need to look at using another method to trigger the backup script using either a responce to an event (or series of events) inside the website or from an external call.

 

A Google App engine performing a URL fetch using it's own cron timer is one method, it's an ugly fudge but it works.. The other is to use an include on all the sites pages that checks the database size periodically and performs the backup based upon time difference between present date and last backup or increase in size.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.