talkto_menow

Members
  • Posts

    122
  • Joined

  • Last visited

Everything posted by talkto_menow

  1. I' m trying to add custom job to my crontab, which as script that does a backup of mysql database: Script: backup_mysql.sh: "/usr/bin/mysqldump -u root -ppassword --all-databases > /mnt/user/Backup/MySQL/dumps/mysql_backup__`date +%Y_%m_%d_%s`.sql" Now, I run this script to add a job to crontab: crontab -l >/tmp/crontab echo "#backup mysql at 9 PM" >>/tmp/crontab echo "* 21 * * * /boot/custom/backup_mysql.sh 1> /dev/null" >>/tmp/crontab crontab /tmp/crontab cp /tmp/crontab /var/spool/cron/crontabs/root- The line is added to crontab The job executes, however it seems to be executing over and over. Once the dump file is created, another backup jobs starts. I am not sure how to fix it? I'am running unRaid 5.0-rc10
  2. Just upgraded without any issues. Thank you Supermicro X7SPA-HF/X7SPA-HF
  3. Found solution adding password to main user "root" solved problem. Now I can port forward using SSH via Putty and setup CrashPlan from desktop client. Sweet.
  4. I am trying to setup SSH connection to my unraid box (running version: 5.0-rc8a) using Putty. I installed openssh, openssl and cpio through unMenu and followed instructions from this post: http://lime-technology.com/forum/index.php?topic=4008.msg108627#msg108627 I have 2 users setup: root; root2 (+ password) I believe I did everything correct and ssh service is running on unraid. Now when I try to connect via Putty (ssh) I am being prompted for user name and password. I enter root2 and password, but access is denied then session closes (looks more like a crash). Telnet via Putty for user "root" works normally, the same when I use Windows 7 telnet client. However when I am login in using root2 credentials, telnet session closes. I created 3rd user+ password after setting up SSH and still no connection. What I am doing wrong?
  5. Is there any way of checking RAM memory usage through telnet?
  6. I have 2 GB of RAM memory and I am running MySQL for XBMC, Plex server is currently down, I installed LIGHTTPD, through unmenu, and it is setup to reinstall on reboot, but it never worked on ver 5.x. (not able to connect to it). I did not mess around with setup since upgrading to ver 5.x. Sometimes I do have a problem to telnet to /mnt/user. Now, I checked unmenu and is back, it was down 2 hours ago.
  7. I do not know if this is a sign of failing usb key or anything else. I am able to access unmenu right after reboot, but after some period of inactivity (24hrs) it's no longer possible (cannot establish connection to tower:8080). I am able to access unraid webgui every time without problems. running unraid server version 5.0-rc8a
  8. How do I check for ms-dos style carriages? I used Notepad to create script, when I run in telnet, script is executed and log file is saved. Now when I press button, there is short message "Waiting for Tower" at the bottom of the screen and that's it. No log file and nothing is synced
  9. I created some shell scripts for rsync . I can run it using telnet, however I would prefer to use custom user button in unMenu. I followed examples available in unMenu folder and tried to execute script, but nothing happens Here is my button: #define USER_SCRIPT_LABEL Rsync #define USER_SCRIPT_DESCR Sync Files /boot/custom/rs.sh Please help
  10. I followed your instructions and added "TOWER\root_root" + password in Credential Manager. Then rebooted machines and now I have access to folders and files on my unRaid box. Thank you very much for your help
  11. I am not sure how to check this. TOWER is available under Network icon/tree. When selecting Tower, there are no properties, it's just visible as SAMBA share I am using Windows 7
  12. I upgraded from 4.7 to 5.0-rc05. One of the requirement is to create a new user and run new permission script. Therefore I created a new user: root_root + password After running a script in File Properties / Security I can see that files that were already on unRaid box have permissions set to: nobody(Tower\nobody) However, when I copy a new file to a share, permissions are set to: main user(Tower\root_root) Computer from which files were copied can access and read file (using SAMBA), other computers on my LAN are unable to open file due to security restrictions. It would make more sense if root_root had similar rights as original root user. Is there any way to grant all access to root_root user? Running a permission script after each time I drop some files on my server is not an ideal solution.
  13. With unraid 4.7 I did not have to use any login. One of the unraid shares is mounted (SMB) on Windows 7 and everything worked well. I think I would have to include this new user/password I created in the script, maybe I should use SSH?
  14. I upgraded my unRaid box from 4.7 to 5.0-rc5 and followed upgrade instructions: - created a new user - set ownership and permissions under Utilities/New permissions I mounted one of the shares on my Windows7 machine and I am using Cygwin + rsync to synchronize files. Now, when I run a script I receive following error: failed Permission denied (13) Here is my script: c:\cygwin\bin\rsync.exe --progress -arth --exclude=".*" --exclude "System Volume Information" --exclude "RECYCLER" --exclude "$RECYCLE.BIN" --verbose --delete "/cygdrive/h/" "/cygdrive/v" I believe this is caused by a new security settings in 5.0-rc5 and created new user. Any suggestions, how to solve this problem? Thank you
  15. I installed cygwin+rsync on my Windows7 machine and tried to "push" syncing to unRaid box. I was asked for password and stopped right there. My setup is pretty standard user=root pass=no password. I suppose if I setup password it might work. I decided to take different approach and mount NTFS share from Windows7 to unRaid. So this is for all noobs out there. Telnet to your unRaid 1. Make the directory you want to mount the share to mkdir /mnt/share 2. Mount the share with user/pass: smbmount //winpc/shared /mnt/share -o username=user,password=pass,rw Or mount the share without a user/pass (this is true if Everyone is still set) smbmount //winpc/shared /mnt/share -o rw To unmount use follwing syntax: umount /mnt/share Now you can use rsync on your unRaid box If you prefer setting up rsync on your PC than you will have to map network drive on your computer. For no reason, sometimes mapped drive will become unavailable with a red x mark. To resolve this problem I created vbs script. Open notepad and copy/paste lines below Set objFSO = CreateObject("Scripting.FileSystemObject") Set objNetwork = CreateObject("WScript.Network") Set objShell = CreateObject("Shell.Application") 'Remove mapped drive If (objFSO.DriveExists("S:") = True) Then objNetwork.RemoveNetworkDrive "S:", True, True End If 'Pause 5 seconds WScript.Sleep(5000) 'Map network drive objNetwork.MapNetworkDrive "S:" , "\\TOWER\Backup" 'Rename mapped drive objShell.NameSpace("S:").Self.Name = "Backup WScript.Quit Save file as "mapnet.vbs" Create task schedule to run script and use 2 triggers: 1. "At Log On" 2. On Event Log: System Source: Power Troubleshooter Event ID: 1 Second trigger will help to remap the drives after sleep or hibernation Now all is left is setting up rsync. Hope this helps somebody.
  16. Thanks for your reply. No luck. Looks like rsync tries to establish ssh connection with Windows7 machine. Error message reads "connection refused" code 255 at io.c(1541). No prompt for password or anything.
  17. I am running my backups using Acronis True Image, unfortunately incremental backups are filling most of the space on my unRaid box. Therefore I decided to try built in rsync feature. After reading various posts I can only say that I am doing something wrong. Test task is very simple copy files from Windows 7 machine to backup folder in one of the shares: Windows 7 - 192.168.1.44 c:/TEST/file.text unRaid - /mnt/user/Data/Backup I used telnet to connect to unRaid box and used following syntax (this is for testing only) /usr/bin/rsync 192.168.1.44:c/TEST /mnt/user/Data/Backup Each time when I run it, I am getting error "connection refused" (255) or (111). I disabled firewall on my Windows7 machine. I know that to setup rsync correctly I need to create rsyncd.conf file and use deamon (not sure how to implement this) and setup backup schedule. Some people setup rsync on their windows machines to backup their files to unRaid or external boxes, but unRaid has rsync already installed. So why not use it? Please provide some guidance. Thank you.
  18. Out of curiosity. Did you encounter any problems related to beta version? Excluding plugins and add ons.
  19. Thank you for your advice. My only concern at this point are Add Ons. Maybe that should be another topic. unMenu has a great feature, allowing install of packages on reboot. I do not know if this feature is still available or it will require writing some script?
  20. I am running 4.7 and I have only one user (root), so I think setting permissions will not apply in this case. Since current 5.0 version is still in beta, If something goes wrong, can it in some way corrupt parity or data?
  21. Sorry, maybe I was not clear. What happens to existing shares? Are they gone after upgrade?
  22. I read upgrade wiki to version 5 and some other posts, but one thing is not clear to me. What happens to existing data after upgrade? Is everything rebuild from parity or data needs to be moved first to some other disks before performing upgrade?
  23. I downloaded "hamachi-2.0.1.15-i686-unRAID.tgz" and I not sure how should I install it on my unraid 4.7 (step by step)? I could not find information about how to proceed. This clearly says logmein hamachi. Does this mean I need Logmein Hamachi or Logmein Free account? Thank you for your help.
  24. I apologize if I was not clear about what I wanted to do. But You are correct I would like to shrink unRaid array to 5 disks without loosing data from removed hard drive. So even though disk3 is completely removed, parity should hold data from this disk, and if I understand correctly running initconfig and rebuild/reconstructing array from parity to smaller size (5 disks) should preserve this data. Second step will be to add SSD drive 64GB to array and create only one share, other shares will be excluded from writing to this disk. I am using unRaid 4.7 Disk configuration: parity device: pci-0000:00:1f.2-scsi-0:0:1:0 host1 (sdb) SAMSUNG_HD204UI_S2H7J9BZA05326 disk1 device: pci-0000:00:1f.2-scsi-1:0:0:0 host2 (sdc) SAMSUNG_HD204UI_S2H7J9BZA05332 disk2 device: pci-0000:00:1f.5-scsi-1:0:0:0 host4 (sdf) WDC_WD1001FALS-00J7B0_WD-WMATV0092482 disk3 device: pci-0000:00:1f.2-scsi-0:0:0:0 host1 (sda) WDC_WD3200AAKS-22SBA0_WD-WCAPZ1658550 disk4 device: pci-0000:00:1f.2-scsi-1:0:1:0 host2 (sdd) WDC_WD7500AAKS-00RBA0_WD-WCAPT0745065 disk5 device: pci-0000:00:1f.5-scsi-0:0:0:0 host3 (sde) SAMSUNG_HD204UI_S2H7JD2B412313 cache device: unassigned
  25. Thank you for this thread, however it seems that running ''initconfig'' will invalidate parity, and will have to be rebuild? and probably the best option will be to move data from the disk I am planning to remove to some other share?