Sounds complicated. What if you had https://docs.moodle.org/en/Automated_course_backup in place and a scheme for archiving them? Compared to moodledata/filedir and the SQL dump, an individual course backup is tiny.
Installing and upgrading help
Recovering a Historic Course
This discussion has been locked so you can no longer reply to it.