These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Domain-Backup Failed on the new forum.
Trying to make a copy of a client's current website, put it on another server and use it as a development bed.
I was following the instructions on the Server Migration documentation page but Im getting a failed error with not much information.
# virtualmin backup-domain --dest /root/backups/ --all-domains --all-features --newformat --all-virtualmin
Starting backup..
Warning: World-writable config file '/etc/my.cnf' is ignored
Creating backup for virtual server blog.austinlawrence.com ..
Copying virtual server configuration ..
.. done
Saving mail aliases ..
.. done
Saving mail and FTP users ..
Warning: World-writable config file '/etc/my.cnf' is ignored
.. done
Backing up mail and FTP user Cron jobs ..
Warning: World-writable config file '/etc/my.cnf' is ignored
.. none to backup
Warning: World-writable config file '/etc/my.cnf' is ignored
Copying Apache virtual host configuration ..
.. done
Copying Apache log files ..
.. done
Copying Webalizer configuration files ..
.. done
Copying Logrotate configuration ..
.. done
Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
Dumping MySQL database blog ..
Warning: World-writable config file '/etc/my.cnf' is ignored
.. dump failed! Warning: World-writable config file '/etc/my.cnf' is ignored
Saving Virtualmin configuration ..
.. done
Saving templates and plans ..
.. done
Saving email templates ..
.. done
Saving custom fields, links, categories and shells ..
.. done
Saving custom script installers ..
.. done
Saving scheduled backups ..
.. done
Saving FTP directory restrictions ..
.. done
Saving DKIM settings ..
.. not installed
Saving greylisting settings ..
.. not installed
Save mail rate limiting configuration ..
.. not installed
Saving mail server configuration ..
.. done
.. done
Backup failed!
His server is kind of a mess and I'm treading very carefully because Im not sure what is broken yet. Any advice here? Is there a better way to go about this?
Ideally I would like two identical websites on two different domains, one that I can break and the other that stays live.
Thanks for any help!
Howdy,
Hmm, I don't see anything in all that which appears to be an error -- just the warning about "/etc/my.cnf".
However, perhaps we should fix that warning, and work from there.
It sounds like /etc/my.cnf is set to be world writable, which is a security concern.
My suggestion would be to run this command, which will leave it as world readable, but not writable:
chmod 644 /etc/my.cnf
After that, does the backup/restore work properly?
-Eric
That did the trick! Such a simple fix. Thanks very much.