Is it possible to change the default Magento backup folder (var/backup/
) to a different/external folder?
We want to keep the Magento folder as small as possible and save those backups in a different location.
backupmagento-1.9
Is it possible to change the default Magento backup folder (var/backup/
) to a different/external folder?
We want to keep the Magento folder as small as possible and save those backups in a different location.
Best Answer
You need to rewrite the model
Mage_Backup_Model_Fs_Collection
and replace this linewith the folder you want.
Also rewrite the helper
Mage_Backup_Helper_Data
and change the return of the methodgetBackupsDir
. Make it return your folder.