由“James Steerpike”.
This is how I do it on a Linux VPS.
First in Moodle
Site administration -> Courses -> Backups -> Automated backup setup.
I set the schedule to daily, execute time can be left to default ( midnight), and specify the directory to /home/user/backup. This automatically backs up all my courses as a mbz to a previously created back up folder. I also do a daily database dump to the same folder using a cron shell script as described in Moodle docs.
I then use a shell script called dropbox_uploader.sh to synchronize my VPS backup folder to Dropbox. Instructions are here at AddictiveTips. A cron task is set up to sync the dumps and course backups from this folder plus moodledata around 1 am using this script. Dropbox provides 2 Gb and is always running so it is a better solution for me than rsyncing to an old Linux netbook I used previously.
First in Moodle
Site administration -> Courses -> Backups -> Automated backup setup.
I set the schedule to daily, execute time can be left to default ( midnight), and specify the directory to /home/user/backup. This automatically backs up all my courses as a mbz to a previously created back up folder. I also do a daily database dump to the same folder using a cron shell script as described in Moodle docs.
I then use a shell script called dropbox_uploader.sh to synchronize my VPS backup folder to Dropbox. Instructions are here at AddictiveTips. A cron task is set up to sync the dumps and course backups from this folder plus moodledata around 1 am using this script. Dropbox provides 2 Gb and is always running so it is a better solution for me than rsyncing to an old Linux netbook I used previously.
Not sure how this might work on shared hosting but if you could install, run and cron the script, it should be possible. Although with a 800 Mb backup, you might have to go above a free plan for Dropbox. Once set up, you could also use dropbox_uploader.sh like this for ad hoc backups.
./dropbox_uploader.sh upload testfile.jpg /dropbox/whatever/folder/you/want