I’m glad it worked out, but as an FYI, there is a quick command for exporting all your courses to disk. We use this to back up all our courses to a private git repo with a cron task script that looks something like https://gist.github.com/carsongee/9f64e40656c27885ab61. And using a simple crontab for root that looks like:
12 4 * * * /edx/app/course_git_backup/course_git_backup.sh > /dev/null
The notable command in the platform management commands is cd /edx/app/edxapp/edx-platform; /edx/bin/python.edxapp manage.py cms --settings=aws export_all_courses
We have an ansible role to do deploy all this, but we haven’t generalized it enough to open source it yet.
37 course_dir = course_id.replace('/', '...')37 course_dir = course_id.to_deprecated_string().replace('/', '...')The import command can import an entire folder filled with courses, so just something like:
sudo su - edxapp -s /bin/bash
. edxapp_env
python manage.py cms --settings=aws import /path/to/export/dir
should work.
Traceback (most recent call last):
File "manage.py", line 15, in <module>
from safe_lxml import defuse_xml_libs
ImportError: No module named safe_lxml
This seems like you have a platform installation issue. I’m thinking you need to rerun /edx/bin/update, or just making sure requirement/edx/local.txt is reinstalled. There are several threads about that error on the code list and SO.
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/00562385-6449-4da8-9933-afae74a1c40a%40googlegroups.com.