|
Post by werner on Nov 8, 2006 14:44:50 GMT 7
UPDATED TO 1.0.01Ok this is my finished version of USB Backup rapidshare.com/files/6993230/USB_Backup.zip.htmlDescription:Makes an Backup with the front Button from everything inside /raid/ without the following folders usbcopy ftproot usbhdd tmp sys lost+found module
to an front attached USB HDD. RequirementsSSH Module Rsync Module USB HDD best formated in ext3 no ntfs support HOWTOAttach an USB HDD to the front USB of the Thecus Log with SSH to the Thecus fdisk /dev/sdg type n (create a new partition) make an primary partition (I made one) type w (write table) ok the USB HDD has now an partition now type mkfs.ext3 /dev/sdg (USB HDD gets formatted in ext3)
USB HDD is now Ready to start now we need to install the Rsync Module and the USB Backup module. When you enable the USB Backup module the module makes an backup off /app/bin/btn_copy to /raid/module/USB-Backup/btn_copy.bak and copies the modified btn_copy to /app/bin when you disable the module then the original btn_copy returns to its place. Ok now when you press the copy button at the front of the thecus then all stuff in /raid without the folders i exclude will get copied to your usb-hdd so you have an full backup off your thecus. I made this with 2 Usb HDD´s for some companies and add an cronjob so they dont need an streamer anymore. the change every day the usb hdd with the second one and have an extern backup what they can secure in an safe. If you have some Questions then ask. greatz Werner PS: I will add this to the wiki when i know how to do that ;-)
|
|
|
Post by chemist on Nov 24, 2006 5:17:32 GMT 7
USB HDD best formated in ext3 no ntfs support Is it possible to use a FAT32 disk? I want my backups to be as easily accessible as possible ...
|
|
|
Post by werner on Nov 24, 2006 14:42:25 GMT 7
yes fat32 is also possible the module is created to mount hdd with any sys wich is supportad by thecus so fat32 is working the advantage of ext3 is that it copies also the file attributes correct (user and file permissions) you can access ext3 under windows without Problems there are projects in the web www.fs-driver.org/
|
|
|
Post by chemist on Nov 26, 2006 0:31:08 GMT 7
OK, thanks for the info, i will look into the ext2 for windows .. The only problem I now have that I get an error trying to download the module Can you change it to (or give me) a working link ?? update: for some reason I am able to download it on my Mac so never mind, I got the module now
|
|
|
Post by chemist on Nov 26, 2006 5:56:15 GMT 7
I have been playing with the module for some time now and I can't get it working (or I don't understand what is going on ) I bought a Buffalo drivestation which is formatted in FAT32 out of the box. When I connect it to the N2100 is is shown as usbhdd/3/1. I am able to drag files to it manually so the device is working fine. However when I use your module it copies everything directly in usbhdd en not in usbhdd/3/1. Basically it just copies al the files to another folder on the N2100 because when I unplug the USB disk everything which was copied is still accessible over the network ... I thought that this was maybe caused by the FAT32 filesystem so I tried to format it as you showed above. Here also something funny is happening.. I am able to create a partition and also formatting it in ext3 seems to work. However when I unplug the disk and plug it in again the USB LED blinks red a few times so there is a read/write error ... When I try to list the partitions with fdisk again I get an error and in the list of partitions nothing is shown .... Can you tell me what I am doing wrong here ? I *really* want this thing to work ...
|
|
|
Post by werner on Nov 27, 2006 14:46:04 GMT 7
what firmware do you you have on your thecus?!?!? I cant reproduce the usbhdd/3/1 do you connect your usbhdd on the front?!?! did you delete the fat32 partition befor you create an ext3. You can also modify an file that it copies everything to usbhdd/3/1 Tell me if you need more information.
|
|
|
Post by chemist on Nov 27, 2006 15:42:59 GMT 7
i connected the disk to the front usb and I am using the latest (.3) firmware. Every device I connect to the front usb is listed as 3/1 .... ???I also have a second N2100 with the .1 firmware; I will check tonight what happens on that one when I connect a HDD to the front USB ...
I did remove the FAT32 partition with fdisk under SSH so that should not be the problem i think ...
|
|
|
Post by werner on Nov 27, 2006 22:36:08 GMT 7
did you make one primary partition or one extended!??! i made one primary but i can modify for you the backup mod to the destination you have thats for me no problem. Tell me if you want that. I cant test it right now because we get the next thecus at the end of this week.
|
|
|
Post by chemist on Nov 28, 2006 0:27:23 GMT 7
I made a primary (1) partition so i think it is very strange I get different results from yours ... if you can modify the module for me that would be great, but if you can give me intructions how to do it (i peeked in the script and it doesn't seem that hard to me, yust edit it with vi I guess ?) I am already happy update: I checked my other N2100 but it also already has the .3 firmware ... however on this one the USB disk is connected as usbhdd/usb3/1 (so with an additional 'usb' before the '3') ... Now I am really confused
|
|
|
Post by werner on Nov 28, 2006 21:13:04 GMT 7
hmm ok then your Buffulo makes something different hehehe ok easy way to edit it here are the instructions
vi /img/bin/btn_copy
`/bin/rm -r /raid/usbhdd/3/1/*` `/usr/bin/rsync -ua --exclude '/usbcopy' --exclude '/ftproot' --exclude '/usbhdd' --exclude '/tmp' --exclude '/sys' --exclude '/lost+found' --exclude '/module' /raid/ /raid/usbhdd/3/1/`
:wq
then the file is stored and try it then again copy also the file to /raid/modules/USB-Backup cp /img/bin/btn_copy /raid/modules/USB-Backup/
I hope that works for you
|
|
|
Post by chemist on Nov 30, 2006 14:18:37 GMT 7
hmm ok then your Buffulo makes something different hehehe Well, actually not only my buffalo is mounted under usbhdd/ usb3/1 but every USB device I connect .. (I also tried another USB HDD and 2 flash disks). My other N2100 connects mounts everything under usbhdd/usb3/1 ... I really think it is a configuration in the N2100 (but why is it different for my 2 N2100's then ??) update: I looked again and all devices are mounted under \usbhdd\usb3\1 on both N2100's .. my mistake ...Thanks !! I will look into it tonight and will let you know if it works without problems ....
|
|
|
Post by chemist on Dec 1, 2006 16:21:03 GMT 7
OK, it works now !!
I also made a slight modification to the btn_copy ; i added the following lines to the end of the file so you know when the backup has ended: echo "Buzzer 0" > /proc/thecus_io sleep 3 echo "Buzzer 1" > /proc/thecus_io sleep 1 echo "Buzzer 0" > /proc/thecus_io sleep 1 echo "Buzzer 1" > /proc/thecus_io sleep 1 echo "Buzzer 0" > /proc/thecus_io sleep 1 echo "Buzzer 1" > /proc/thecus_io
thanks for the support !!
|
|
|
Post by werner on Dec 1, 2006 17:39:09 GMT 7
ah nice feature i will add that ;-)
|
|
|
Post by getmythe on Dec 10, 2006 18:49:43 GMT 7
module download link is invalid, please advise!
|
|
|
Post by werner on Dec 11, 2006 15:08:20 GMT 7
|
|