by Ken Task.
@ both of you ...
more digging found this:
Possible work-around ... don't host with them so dunno but from what I read ..
might be possible:
hostgator reference
http://support.hostgator.com/articles/cpanel/what-do-i-put-for-the-cron-job-command
in /moodlecode/admin/cli/
create a text file called courses.txt make sure it's readable.
In courses.txt put the course ID's of the courses you want to backup one course ID per line.
1 is your front page.
So courses.txt **might** look like:
1
24
3
407
133
Next create a file called 'runbu.sh' (stands for 'run backups')
In runbu.sh these lines ** adjust the paths for your account. Just following what the HG reference
showed.
#!/bin/bash
#
for i in `cat /home/username/public_html/[moodle?]/admin/cli/courses.txt`
do
echo "Site in que: $i";
echo "---------------------------------";
php /home/username/public_html/[moodle?]/admin/cli/backup.php --courseid=$i --destination=/full/path/to/densination/directory/;
echo "***** done with $i *****";
done
** make the file runbu.sh executable.
The php line above wrapped here, I think ... that one line ends with ';'
Run from cron job
The destination directory could be in /fullpath/to/moodledata/repository/backups/
You *must* create the 'backups' directory manually and set ownership/permissions such that the user thus Moodle can read/write to it. This script will NOT create that directory for you.
You could then setup a file system repo from any course to point to that repo to restore courses if you needed to
AND you'd see the backup files sizes as well as their full humanly recognizable names.
Otherwise, if you leave off the designated directory option, it will go into moodledata/filedir/ ... but who knows where!
The cli/backup.php script takes preferences for what to backup from the Moodle Admin UI settings for backups - not automated backup preferences. Defaults for that are usually a full course backup including users and their work.
Why would this work and the automated backups normally run fail?
Each course is backed up as a separate process ... one at a time.
Automated backups is ONE process that might/probably IS going over limitations/restrictions on shared accounts.
If this works, great ... you have a work around to backup. ** BUT ** wouldn't trust that I could restore such a course without testing. No testing could mean you fool yourself.
Shouldn't hurt to try it.
'spirit of sharing', Ken