Can we use single moodledata folder for two websites?

Can we use single moodledata folder for two websites?

SIERRA TEC -
回帖数:8

Hi Team,

We have two sites 

1. Live site (http://xxxtest.com) - Version 3.5
2. Demo Site (http://xxxtest.com/demo)- Version 4.4

Can we use single moodledata folder for both websites?

Please suggest.

回复SIERRA TEC

Re: Can we use single moodledata folder for two websites?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
I'm intrigued to know why you want to?
回复Howard Miller

Re: Can we use single moodledata folder for two websites?

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Oh, there is a big demand - to run a copy of a site without duplicating moodledata, for example.
眨眼
回复Visvanath Ratnaweera

Re: Can we use single moodledata folder for two websites?

Ken Task -
Particularly helpful Moodlers的头像

Or ... one could stand up the clone with cloned code - change config.php - actually installs a fresh site of same build date ... then make a few course backups from production site .. user or no user, restore them to the cloned site.

Kinda depends upon purpose of the clone, me thinks. 微笑

'SoS', Ken

回复SIERRA TEC

Re: Can we use single moodledata folder for two websites?

Dan Marsden -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Plugins guardians的头像 Testers的头像 Translators的头像

You can share an object storage bucket between multiple sites using our object storage plugin. You can set them to never delete objects or give one read/write access(eg production) and the other only read access (eg demo)

回复SIERRA TEC

Re: Can we use single moodledata folder for two websites?

Ken Task -
Particularly helpful Moodlers的头像

Here's the link the to plugin suggested:

https://moodle.org/plugins/tool_objectfs

Sigh!   No Google Bucket. 伤心 And no, don't have the funds nor the 'know how' to develop one. 伤心 伤心

'SoS', Ken

回复Ken Task

Re: Can we use single moodledata folder for two websites?

Dan Marsden -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Plugins guardians的头像 Testers的头像 Translators的头像
回复Dan Marsden

Re: Can we use single moodledata folder for two websites?

Ken Task -
Particularly helpful Moodlers的头像

How did I miss that!   Thanks, Dan.

Alas, the service account creation is not something documented for the Google end.   Have a 'customer' that is already a Google Edu and they could explore the use of this plugin, but their Google Admin won't pursue.

There are a few teachers already taking advantage of their google drive and linking to shared files from their space - which is restricted to members of the Google Domain for the school only.

Backups of their courses are small compared to others who don't use Google Drive.   Do know that backups of those courses that use Google Drive in such a fashion must be restored to other moodles configured the same or it's busted.

So the original question was for entire moodledata ... I'd still say no ... due to cache/sessions in moodledata.

'SoS', Ken