Quantcast
Viewing latest article 6
Browse Latest Browse All 26

How to backup SugarCRM from the command line

From the linux command line, these commands let you backup and restore a SugarCRM database.

Firstly, for a proper back up of SugarCRM you’ll need two files, one containing the application files, one containing the SQL database.

First up, the backup…

Backup files:

tar -zcvf CRM-BACKUP-FILES.tar.gz FOLDER-TO-BACKUP/

Backup sql (empty copy of the database):

mysqldump -u USERNAME -p -–no-data > CRM-BACKUP-SQL.sql

Backup sql (with the data) :

mysqldump -u USERNAME -p > CRM-BACKUP-SQL.sql

Then for the restoration…

Restore files (to current folder):

tar -zxvf CRM-BACKUP-FILES.tar.gz

Restore sql:

mysql -u USERNAME -p DATABASENAME < CRM-BACKUP-SQL.sql

These SugarCRM Knowledge Base articles may also be of use:


Viewing latest article 6
Browse Latest Browse All 26

Trending Articles