Title: Backup Files/DB with Shell Script
Last modified: August 22, 2016

---

# Backup Files/DB with Shell Script

 *  [wyclef](https://wordpress.org/support/users/wyclef/)
 * (@wyclef)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/backup-filesdb-with-shell-script/)
 * Hello,
 * I am interesting in running cron jobs to have automated backups cycling out every
   day of the month. Came across these 2 scripts which work well but was wondering
   what people think about them. One you enter the DB info in and the other pulls
   it from the wp-config file. What are your thoughts, and ideas for how to improve
   upon them if at all.
 * [http://www.blog.magepsycho.com/backup-wordpress-project-files-db-using-bash-script/](http://www.blog.magepsycho.com/backup-wordpress-project-files-db-using-bash-script/)
 * [http://theme.fm/2011/06/a-shell-script-for-a-complete-wordpress-backup-4/](http://theme.fm/2011/06/a-shell-script-for-a-complete-wordpress-backup-4/)
 * Also, on a side note, anyone know how to build in a simple progress bar or blinking
   ellipsis? Also, how to send this to another server, or to check the integrity
   of the database.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/backup-filesdb-with-shell-script/#post-5905326)
 * Do not trust any third-party scripts that directly ask for your DB info or to
   scrape wp-config.
 * There are plenty of safer options: [https://wordpress.org/plugins/tags/backup](https://wordpress.org/plugins/tags/backup)
 * [https://codex.wordpress.org/WordPress_Backups](https://codex.wordpress.org/WordPress_Backups)
 *  Thread Starter [wyclef](https://wordpress.org/support/users/wyclef/)
 * (@wyclef)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/backup-filesdb-with-shell-script/#post-5905331)
 * WordPress links to one of those scripts direct from the codex.
 * “A Shell Script for a Complete WordPress Backup”
 * [https://codex.wordpress.org/WordPress_Backups#Automatic_Backups](https://codex.wordpress.org/WordPress_Backups#Automatic_Backups)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/backup-filesdb-with-shell-script/#post-5905333)
 * Whoops, I thought we removed all of those. It’s gone now.
 * In general, we haven’t been officially recommending any shell scripts for backups
   since the first backup plugins began appearing.
 * You should never give your WordPress database connection details to a third-party
   shell script.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Backup Files/DB with Shell Script’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/backup-filesdb-with-shell-script/#post-5905333)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
