owen1978

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by owen1978

  1. ok, still having problems... #!/bin/bash mkdir -p /mnt/exthd/`date '+%d%m%y'`/{home,pictures,music,flash} mount -t vfat /dev/sdg1 /mnt/exthd cp -r /mnt/user/home/* /mnt/exthd/`date '+%d%m%y'`/home cp -r /mnt/user/pictures/* /mnt/exthd/`date '+%d%m%y'`/pictures cp -r /mnt/user/music/* /mnt/exthd/`date '+%d%m%y'`/music cp -r /boot/* /mnt/exthd/`date '+%d%m%y'`/flash umount /dev/sdg1 rm -rf /mnt/exthd when i invididually put in these commands through terminal one by one it works but then i run as a script it creates folders with a \r e.g. /mnt/exthd/250911/pictures\r /mnt/exthd/250911/home\r /mnt/exthd/250911/music\r /mnt/exthd/250911/flash\r the culprit is this command mkdir -p /mnt/exthd/`date '+%d%m%y'`/{home,pictures,music,flash} it just does not work in a script but works fine but inputting it into terminal... weird
  2. this is just a rough script i put together just now... could someone bit more linux minded have a quick look mkdir /mnt/exthd mount /dev/sde /mnt/exthd mkdir /exthd/`backup '+%m%d%y'` cp -r /unraid/home/* /exthd/`backup '+%m%d%y'`/home cp -r /unraid/pictures/* /exthd/`backup '+%m%d%y'`/pictures cp -r /unraid/flash/* /exthd/`backup '+%m%d%y'`/flash umount /dev/sde
  3. Got an portable external hd which im going to format with FAT32 What i am looking for is basically a user script that i can simply click from ummenu/user scripts I want it to backup /unraid/home /unraid/pictures /unraid/flash to the external hd in dated backup folders (see example below) backup[date] (and within in this folder are subfolders) home pictures flash
  4. Im doing the same thing.... One thing i need clearing up once i have installed the new parity drive Does is start rebuiling parity automatically or do I have to start the array? also if the array is started and parity is building shares are still accessable right
  5. I am migrating to a new server. Do i need to make sure that the disks stay with the same ports e.g. sda (old server) move to sda (new server) sdb (old server) move to sdb (new server) Thanks
  6. Solved my issue... it was simple my isp had changed there DNS server addresses, because my settings are static it didnt update!
  7. Well just about to start buidling my 2nd server using the HP Microserver, as I wanted something smaller and more eco friendly. Then will be transferring the HDs over to the new server. I dont think im suffering from UCD or CHAD etc... The wife couldnt see the point of me spending £££ years ago when I first took the steps towards UNRAID & XBMC. But now she loves it and easily downloads movies herself. I told her the other day about Sickbeard and she wants it!
  8. These messages have just appeared I recently upgraded unmenu... May 23 20:22:24 UNRAID emhttp: shcmd (15): /usr/local/sbin/shfs /mnt/user -o noatime,big_writes,allow_other,default_permissions May 23 20:22:25 UNRAID emhttp: shcmd (16): killall -HUP smbd May 23 20:22:25 UNRAID emhttp: shcmd (17): /etc/rc.d/rc.nfsd restart | logger
  9. Just updated my unmenu just one small niggle Downloading 990-unmenu-wget.awk rev $Revision: 229 $ $Date: 2011-05-18 07:51:50 -0400 (Wed, 18 May 2011) $ 07e41f797b80c85ec34b7ef7c3011f6a != 7b9db67ba714212dcea099bdb8b06579 or 5f4ea03cef412e6d4b33061c5e31cc7d, /tmp/unmenu_tmp/990-unmenu-wget.awk not installed I tried deleting the old 990-unmenu-wget.awk and then install the update but still the same message
  10. Yes it was my DNS doh!!! I got static address on my unraid server. My ISP must have changed their systems, and due to me having static settings they did not change automatically!
  11. I posted a problem in the Sabnzbd thread about it not fetching nzb's from nzbmatrix. I then manually added the nzb to the queue but now under connection it says resolving address and doesnt resolve it I was 4.5.6 but upgraded to 4.7 today but still no luck I also noticed that it says in the unmenu May 21 13:01:59 UNRAID ntpd_initres[1590]: host name not found: pool.ntp.org May 21 13:01:59 UNRAID ntpd_initres[1590]: couldn't resolve `pool.ntp.org', giving up on it I looks to me its not resolving addresses? Would this explain why sabnzbd suddenly had these problems How can fix this.... please help!
  12. Havent tried any other nzb sites... Uploaded with ImageShack.us Updated to ver 0.5.6 Ok... tried NewzBin and its the same thing?
  13. Hi Guys, I have been running Sabnzbd with no problem what so ever until recently, i haven't tinkered with it at all it just stopped working one day. I get the following message in the History. 2011-05-19 06:52:37,911 ERROR: Error getting url https://nzbmatrix.com/api-nzb-download.php?id=940400&username=owen1978&apikey=[my api key] (cause= "") Using V0.5.2.
  14. Any help? How do I get it into the powerdown script (via the go script?)
  15. /usr/bin/wget -q --delete-after http://SAB_HOSTNAME:SAB_PORT/sabnzbd/api?mode=shutdown&apikey=INSERT_HEXIDECIMAL_KEY_HERE Will this do the trick in the powerdown script?
  16. Is this the most simplest method to shutdown sabnzbd, i want something that shuts down sabnzbd when the powerdown script it run during power failure
  17. It seems I might have jumped the gun as the 15 downloads I have done since only two have had problems. All I did was setup the correct time in UNRAID as it was running 8 hours out of sync!
  18. Correct... lol Love Joe's enthusiasm and knowledge!
  19. Thanks for the reply... Going to turn it into a script which runs everynight!
  20. What I mean is there anything that keeps a track of what files and folder are on each disk? Im thinking what happens if disk 1 dies and if you want to know what was on that disk? What do you do?
  21. owen1978

    Simple Script

    I worked it out... within the done folder sabnzbd creates movies subdirectory so it should read mv /mnt/user/sabnzbd/movies/* /mnt/user/movies/ Doh! So I still need to move the movie into the correct folder!
  22. owen1978

    Simple Script

    Created a script and placed it in the unmenu #define USER_SCRIPT_LABEL Move Movies #define USER_SCRIPT_DESCR Move Downloaded Movies to Movies Share #UNMENU_RELEASE $Revision: 7 $ $Date: 2010-03-29 23:12:23 -0400 (Mon, 29 Mar 2010) $ mv /mnt/user/sabnzbd/done/* /mnt/user/movies/ when i browse on the console it moved it too... /mnt/user/movies\r/ When I browse through the shares it shows as... /mnt/user/MWGPZL~3 Why didnt it work and how can i get the contents of the MWGPZL~3 folder moved? to movies Help
  23. owen1978

    Simple Script

    Just want to run this script by as im still learn nix scripting Basically want to move downloaded movie folders and there contents to my main movie share so is this correct? mv * /mnt/user/sabnzbd/done/* /mnt/user/movies or should i use mmv?
  24. I was having these issues also, fortunately I found a fix that works for me... unfortunately the repair seems to take a little bit longer than what it used to. I've found that replacing the par2 executable with the one from here: http://code.google.com/p/unraid-weebotech/downloads/list seems to fix the issue. Like always, YMMV. Im having a problem - out 6 downloads 3 of them had repair/verify errors. I extracted the 1.3 dependencies package and updated the par2 file with the one in the link above. rezipped it as a tar.gz file changed the go script accordingly but sabnzbd woudn't start so i thought it needs to be a tgz extentsion so i renamed the file extentsion to tgz, changed go script but still it wouldnt start so in the end i restored the original 1.3 dependencies package back and sabnzbd starts fine with that? I just don't understand why it didnt work basically all i did was replace the par2 (258kb) app with weebotechs version is slightly larger at around 1.4mb would this be the problem? Or did i rezip it in correctly?
  25. I have used your method of installation, it was easy! even for me! Thanks