Support

Akeeba Backup for Joomla!

#27907 Remove database passwords (and others) from backup

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Friday, 07 July 2017 17:17 CDT

rhellyer
Description of my issue: I am making backups of my site in order to hand over to another party to install on their server (I will then delete my version). However I'd rather not disclose the database password that I use on my current site.

Is there a way that I can create a backup without it containing password information in the configuration.php file in the archive?

Many thanks

nicholas
Akeeba Staff
Manager
The configuration.php file cannot be modified while backing up. It'd violate the principle of making exact clones which is the basis of backup software. You can, however, make sure that the database password is not included in the archive.

First, use the Files and Directories Exclusion to exclude configuration.php from the backup. This means that the entire file is no longer being backed up. This is not a problem since you're already moving your site to a different server and have to change all the settings anyway. Do note that you do not need to create one yourself on the restored site; the restoration script included in the backup archive will create one for you.

Then you need to go to Akeeba Backup's Configuration page, find the Database Backup Engine row and click on Configure. Check the box "Blank out username/password". This makes sure that the database connection information is not stored inside the installation/sql/databases.ini file when taking a backup.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

rhellyer
Thanks very much for the quick reply - this is exactly what I needed
Richard

nicholas
Akeeba Staff
Manager
You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!