Copying a Joomla website - Suggestion

Joomla! Documentation Workgroup

Moderator: Documentation

Locked
skodz
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Feb 09, 2016 11:48 am

Copying a Joomla website - Suggestion

Post by skodz » Thu Dec 06, 2018 4:30 pm

I've just been cloning a Joomla site for testing and I have found a possible improvement to the documentation (https://docs.joomla.org/Copying_a_Joomla_website)

In the final section Copying the database with MySQL command line method it shows how to use mysqldump to make a copy of your existing database, but I would recommend adding the --databases switch so it reads:

Code: Select all

mysqldump -u user -p --databases db-name > db-name.out
The reason I suggest this is that when you copy the db-name.out file to the destination it will not automatically create the database if it does not exist. Adding that switch means it checks to see if the database exists and creates it if it doesn't.

Otherwise that section of the document is very useful.

Regards,
Steve

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44068
Joined: Sat Apr 05, 2008 9:58 pm

Re: Copying a Joomla website - Suggestion

Post by Webdongle » Thu Dec 06, 2018 6:43 pm

It will not automatically create a database on most servers. Allowing it to do that would be a security risk would it not? Besides Akeeba is by far the best method.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Copying a Joomla website - Suggestion

Post by sozzled » Thu Dec 06, 2018 6:48 pm

@skodz: Interesting thoughts in relation to the documentation (https://docs.joomla.org/Copying_a_Jooml ... ine_method). 8)

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17417
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Copying a Joomla website - Suggestion

Post by toivo » Thu Dec 06, 2018 8:57 pm

The simpler the cloning instructions are, the better. The target audience of the Joomla document is the average user with relatively little IT experience. The details of the mysqldump and mysql programs are in the MySQL Reference Manual if required, but, agreed, the simplest and safest method is Akeeba Backup and Kickstart.
Toivo Talikka, Global Moderator


Locked

Return to “docs.joomla.org - Feedback/Information”