English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Export slave with shared users
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Export slave with shared users
#14423
Export slave with shared users 3 Years, 11 Months ago Karma: 0
Hello Edwin,

How do I export a slave site where the users are shared so that it can run by itself (images are specific)? I know to use the following tar command to restore the symbolic links: tar -chzf filename.tar.gz ./

How do I recombine the database for the slave so the users are all intact?

My current db structure is:

account_sites
- Tables
- Views
account_master

In this multisite there are the following four sites:

- Master
- Slave 1
- Slave 2
- Users

Thanks!
azurelink
Expert Boarder
Posts: 87
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2020/05/26 16:47 By azurelink.
The administrator has disabled public write access.
 
#14424
Re: Export slave with shared users 3 Years, 10 Months ago Karma: 54
Concerning the files and folders, you effectively found the magic command that replace the symbolic links by physical files and folders.

Concerning the DB, this must be done manually as you will have to combined the table coming from several DBs.

When you export the DB of a website, PHPMyAdmin and MySQLDump, export VIEWS that must be replaced by physical data.
The syntax of a VIEW is like

CREATE VIEW <name of the view> AS SELECT ..... FROM DBName.DBTable

When you have "link" between different DBs, DBName is present.
When this is in the same DB, you just have DBTable.

What you have to do is, for each VIEWs, to export the tables where the data are physically stored. You have to follow the DBName.DBTable until you have a physical TABLE.

When done, in most case, you also have to rename the exported tables with the prefix of the slave site.


I hope this will help you
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14425
Re: Export slave with shared users 3 Years, 10 Months ago Karma: 0
Thanks for your reply. I'll have to digest this for a while, but it may be above my skill level.
azurelink
Expert Boarder
Posts: 87
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla