6 months ago
Hi there,
I have the moodle template deployed on one project and I need a way to move it to another project. I've tried just dumping and restoring the database on a different service in the new project but that didn't work entirely as there are also files that need to be moved from the previous moodle service. Can someone please advise what would be the best way of going about this transfer?
Thanks in advance!
22 Replies
Any help on this would be greatly appreciated as I need to do this ASAP
6 months ago
I'm sorry but we do not provide a way to move services between projects
I understand that - however how should I go about manually moving it then
6 months ago
You'd need to export everything in your volumes and move them to new services in the other project.
6 months ago
I'm sorry, but I cannot provide project support at this time. I will let the community involve themselves in this thread to assist you.
6 months ago
Not natively, no.
I can take a dump of the database but I can't access the files in the volume
So i've managed to get a dump of the volume but now how can i upload this to the new volume?
@Brody I've managed to upload the tar of the old volume onto the new volume with your filebrowser template, however I need some way to extract it, if i had access to the terminal from filebrowser I'd be able to do this however the user you create in your [start.sh](start.sh) script doesn't have the permission to execute commands, do you think this is something you could quickly add?
I tried to fork it myself but I had an issue where the start.sh script would keep crashing when it went to create the database
6 months ago
Try -
Managed to get it done!
Steps:
take down the old Moodle deployment
disconnect the volume from the moodle service
create a new service from the dump volume template (https://railway.com/deploy/EBwdAh)
attach the old moodle volume to the dump volume template
follow the steps on the template to dump the volume
in your new project create a filebrowser service from the template and follow the steps. make sure you enable the use volume root flag
log into file browser and upload the .tar.gz volume dump
use the railway CLI to ssh into the filebrowser
decompress the dump using the tar command
ensure that the moodle folders have the correct permissions
update the config.php to reflect the new database credentials
disconnect the volume from filebrowser and reattach it to moodle
use pgdump and pgrestore to transfer the database (make sure you wipe the database first using psql to start with a fresh db)
restart the moodle container
and you should be good to go!
This process really should be improved, it should not be this long and convoluted just to transfer a service from one project to another
5 months ago
!s
Status changed to Solved noahd • 5 months ago