Copying a Joomla website - Suggestion

Joomla! Documentation Workgroup

Moderators: Chris Davenport, Hutchy68

Post Reply
skodz
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
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: 36120
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
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 6054
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

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)
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 10062
Joined: Thu Feb 15, 2007 5:48 am
Location: Oxford, UK
Contact:

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
my first programs were assembled and run in 16KB :)
troubleshooting smtp and other articles https://talikka.com/joomla


Post Reply

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