-
Posts
1,570 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by reggiep
-
@powdarmonkey. Am I OK to put the script in a subfolder so it would be /usr/bin/moodlebackups? Just so i can find it easier later! I also had #!/bin/bash at the top of my script rather than #!/bin/sh. Not sure if that would make a difference? Also do i have to take the sh off the end as at the moment that helps my small brain recognise what it is! Thanks
-
I seem to missing athe point somehwre in using crontab? I have a script which runs fine when I type ./script.sh as I have chmodded the file like this... chmod ugo+rx moodlebackup.sh but I can't get it to run in cron. I have gone in as root, typed crontab -e, and added this line... 52 11 * * Mon-Fri /var/moodlebackup/moodlebackup.sh But nothing happens at 11:52! Can anyone make any suggestions. Thanks.
-
Firstly, you have lost me yet again cybernerd Secondly I have changed it a biy now as it wasn't working for me but it is now! Here it is again with alterations... #!/bin/bash # #Moodle Backup Script # # Variables TIME=`date +%Y-%m-%d` DOWN=`date +%u` DOWD=`date +%A` DEST="/var/tempmoodlebackup" NFSHOST="10.60.28.56" NFSPATH="/mnt/array1/moodlebackup" NFSMOUNT="/mnt/moodlebackup" ARCHIVENAME="moodle-$DOWN-$DOWD.tar.gz" ARCHIVE="/var/$ARCHIVENAME" function out { echo "[" 'date +"%Y-%m-%d %T"'"] $1" } mkdir $DEST tar -zcf $DEST/moodledata.tgz /var/moodledata tar -zcf $DEST/moodlescripts.tgz /var/www/moodle mysqldump -u root --password=password -C -Q -e -a moodle > $DEST/moodle-backup-full.sql tar -zcf $ARCHIVE $DEST mkdir $NFSMOUNT mount -t nfs $NFSHOST:/$NFSPATH $NFSMOUNT cp -fv $ARCHIVE $NFSMOUNT/ ls -lah $NFSMOUNT umount $NFSMOUNT rm -rfv $NFSMOUNT echo "" out "Removing $DEST and $ARCHIVE from local disk" echo "" rm -rf $DEST rm -fv $ARCHIVE echo "" out "Backup Complete" echo ""
-
You've lost me there cyberbnerd! Are you asking me whether I should be putting the script up here without permission? If so I don't know. I could take it down again if Webman is not happy?
-
I am having a go at making a script to automatically backup our moodle on linux and then run it with crontab. Can somebody take a look at my first effort and see if it could be improved? I have blatantly reused code that was given to me by WEBMAN to backup zimbra. Thanks Webman. #!/bin/bash # # Moodle Backup Script # # Variables TIME=`date +%Y-%m-%d` DOWN=`date +%u` DOWD=`date +%A` SOURCE="/var/moodlebackup/" DEST="/tmp/moodlebackup" NFSHOST="10.60.*.*" NFSPATH="/mnt/array1/moodelbackup" NFSMOUNT="/mnt/moodlebackup" ARCHIVENAME="moodle-$DOWN-$DOWD.tar.gz" ARCHIVE="/tmp/$ARCHIVENAME" LOG="/var/log/moodlebackup.log" function out { echo "["`date +"%Y-%m-%d %T"`"] $1" } #echo "" #echo "* * * * * * * * * *" #echo "Moodle Backup" #echo `date +%Y-%m-%d` #echo "" echo "" out "Moodle Backup backup" echo "" tar -cvzpf $SOURCE /moodledata.tgz /var/moodledata tar -cvzpf $SOURCE /moodlescripts.tgz /var/www/moodle mysqldump -u root --password=password -C -Q -e -a moodle > /var/moodlebackup/moodle-backup.sql echo "" out "Creating archive" echo "" # Create archive of backed-up directory for transfer tar -zcf $ARCHIVE -C $DEST . echo "" out "Copying to NFS server" echo "" mkdir $NFSMOUNT mount -t nfs $NFSHOST:/$NFSPATH $NFSMOUNT cp -fv $ARCHIVE $NFSMOUNT/ ls -lah $NFSMOUNT umount $NFSMOUNT rm -rfv $NFSMOUNT echo "" out "Removing $DEST and $ARCHIVE from local disk" echo "" # Remove temp backup destination, samba and archive rm -rf $DEST rm -fv $ARCHIVE echo "" out "Backup complete!" echo "" echo "----------" cat $LOG | mail -c '' -s "[Moodle backup] `hostname --fqdn` $TIME" $EMAIL
-
Just a round of applause for you two guys It's great to see what people out there are doing with moodle, and I'm so glas my school has decided to go with it.
-
I did look at the Active Directory intergration too, but the text was long and scary so I gave up and went down the pub instead.
-
Can they both stop double posts as well plexer?
-
Hi Kim, Sorry i didn't mention that I aready have a public IP registered to point to the private IP set up by my LA comms dept. So users from outside the school can access the moodle. It is just people trying to access it from the internal network can't!
-
I don't have a MS account manager! I did think about the password change option but then the user doesn't get any info about their account being locked and I don't get a list of suspended users. The MS offering does look more powerful than the google one but it also seems to wander off into a lot of pages of ads.
-
OK, I have my moodle server running internally on a private IP address 10.60.*.* and I have registered a domain for it Google. Now I am working out what i need to do so users in and out of the school can access it through the registered domain name. I know I have to add Google in DNS but not quite sure how! Would I create a new forward lookup zone called Google or just add a new A record in my existing forward lookup zone! I just don't play around enough with DNS to know this! Thanks
-
So I am tasked with swapping out our current email solution for staff with a new one but I have no budget! So I have taken a look at bot live@edu and google apps. I can see pros and cons on both sides. For example you can suspend an account in apps but not on live@edu. Does anybody have an opinion on this? PS I am using zimbra for our students but I don't want a large chunk of my time taken up looking after staff accounts on zimbra as I am not sure how I could restore my backups if i ever had to! the students are told that if there was a disaster they are not guaranteed to get their mails back.
-
I can just feel the warm glow off the last few posts.
-
Well I have just had a meeting with the ICT strategy group and we are moving to Moodle! Yippee, er hold on, that means I have to do some work. What have I done!
-
Very good, and I was expecting a smutty end which didn't arrive which is good!
-
Oh I see, that does sound really useful. Wel done Penfold for all your efforts.
-
config.php should be in the moodle folder so something like xampp/htdocs/moodle/config.php Then look for the line $CFG->wwwroot = 'http://ip.address.of.server'; It should either be just the IP address of your server or ip/moodle
-
@cybernerd. So can you give in simple terms an idea as to what the sims connection does? I thought it was just so users could see their timetable! I'm guessing there is more to it. I was thinking of giving it a go but I didn't want to go through all the procedures without knowing what I would get at the end.
-
Is this done through the add on that penfold is creating or some other way?
-
I disagree with saying that moodle is hard to set up! On a windows system you can downlaod the xamp moodle install or even as a linux novice there are some docs to follow to install it. But saying that I do know what you mean. Uniservity has been set up for us and all we have to do it upload the users. If I had the money though and had to choose between the two, it would be a no brainer for me.
-
@kmount WOW you have my attention now. Moodle linking in with zimbra! When you say Pre authentication is that implying they could use the same username and password? I have a test moodle set up with LDAP intergration but I never could get zimbra linked in. Prehaps I could give it another go. Could you maybe give a bit more info or some links. @coquet636 I'm in a similar boat to you, i think. I have 5 linux boxes , 3 under my desk. they are running moodle, mahara, zimbra, fog and xibo. I have just follwed this forum and other linux forums and taken note of the key commands. It is amazing how quickly you can pick some stuff up, but some stuff just seems beyond me!
-
When you say a seperate section are you talking about different domains?
-
@kmount. I think it is more worry than anything else on my part, I think if exchange went belly up I could probably (only probably) sort it out. If my zimbra went I might struggle. I am currently backing up zimbra nightly to an NFS share but If the system went down I'm not sure I would know exactly how to get it going again, whereas if a windows server crashed I could restore it and reinstate backups. Don't get me wrong i do like the zimbra and all the students love it!
-
One of my goals for next year is to improve our email system and introduce shared calendars. At present we have an LA provided solution which is a bit clunky. for the staff and zimbra running internally for the students. I am thinking about exchange but I'm worried that the costs will be rejected by the powers above. Can anyone suggest what the best licensing model is? Thanks
-
Nope, I have about three!
