Why is the Auto backup creating 2 files
2 posts by 1 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 26, 2011 (RSS)
By gversion - May 26, 2011
Hello,
I am running the Auto Backup plug-in every hour and it seems that it's creating 2 files per backup:
no-hostname-v2.06-hourly-17.sql.php
mydomain.co.uk-v2.06-hourly-17.sql.php
The "no-hostname" file is created about 1 minute after the "mydomain.co.uk...php".
I have setup the script to email a copy of the file and consequently both files are being sent to me in 2 separate emails.
Does anyone know why this is and what the difference is between the two files? Ideally I'd like to just have one file being sent...
Thank you,
Greg
I am running the Auto Backup plug-in every hour and it seems that it's creating 2 files per backup:
no-hostname-v2.06-hourly-17.sql.php
mydomain.co.uk-v2.06-hourly-17.sql.php
The "no-hostname" file is created about 1 minute after the "mydomain.co.uk...php".
I have setup the script to email a copy of the file and consequently both files are being sent to me in 2 separate emails.
Does anyone know why this is and what the difference is between the two files? Ideally I'd like to just have one file being sent...
Thank you,
Greg
Re: [gversion] Why is the Auto backup creating 2 files
By gversion - May 26, 2011
Hi all,
Further to my previous post, it looks like by adding a value to the variable below, the script stops sending 2 copies of the backup file:
$GLOBALS['AUTOBACKUP_DEFAULT_PREFIX']
When I had no value in this field (i.e. the filename should use the domain name as the prefix), the script was sending 2 copies (one with "mydomain" as the prefix and the other with "no-hostname" as the prefix).
So I typed in "cms" into this variable and now the filename is as follows:
cms-v2.06-hourly-18.sql.php.gz
... and only one file is being created and emailed to me [:)]
Greg
Further to my previous post, it looks like by adding a value to the variable below, the script stops sending 2 copies of the backup file:
$GLOBALS['AUTOBACKUP_DEFAULT_PREFIX']
When I had no value in this field (i.e. the filename should use the domain name as the prefix), the script was sending 2 copies (one with "mydomain" as the prefix and the other with "no-hostname" as the prefix).
So I typed in "cms" into this variable and now the filename is as follows:
cms-v2.06-hourly-18.sql.php.gz
... and only one file is being created and emailed to me [:)]
Greg