Moving moodledata from one server to another using rsync
Learn how to efficiently transfer your moodledata directory to a new server using the rsync tool, with detailed command options to optimise the process and exclude unnecessary directories.
When Migrating your installation to a new server you will need to move the moodledata directory to its new location. This operation can be completed with a simple linux tool called "rsync" Using the command below will move the data to the target server/path with the following option set and exclude unnecessary directories.
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) -v, --verbose increase verbosity -z, --compress compress file data during the transfer rsync -avzh --exclude=cache --exclude=localcache --exclude=sessions --exclude=temp --exclude=trashdir moodledata root@<New Server>:/var/www
Looking to enhance your Linux infrastructure? At EssingtonITS.co.uk, we offer expert support and tailored solutions to optimise your systems. Let us help you achieve seamless integration and improved performance.
Looking to optimise your Learning Management System? EssingtonITS offers tailored solutions to enhance your e-learning environment. Visit EssingtonITS.co.uk for expert IT services, or explore our dedicated hosting and support for Moodle at myelms.co.uk. Let us help you create a seamless and efficient learning experience.
person people found this useful.