February 25, 201214 yr I wrote an EXE app to compare source and destination file comparison at the byte level so I can validate my copy from source to destination was successful. Can I run an exe on the unRaid server? Can I also attach a USB drive to the unRaid server without copying the data to the server for purposes of file comparison?
February 25, 201214 yr I wrote an EXE app to compare source and destination file comparison at the byte level so I can validate my copy from source to destination was successful. Can I run an exe on the unRaid server? Can I also attach a USB drive to the unRaid server without copying the data to the server for purposes of file comparison? you can not run an EXE on unrAID's OS. linux has a compare built in. It is called "cmp" root@Tower:~# cmp --help Usage: cmp [OPTION]... FILE1 [FILE2 [sKIP1 [sKIP2]]] Compare two files byte by byte. -b --print-bytes Print differing bytes. -i SKIP --ignore-initial=SKIP Skip the first SKIP bytes of input. -i SKIP1:SKIP2 --ignore-initial=SKIP1:SKIP2 Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of FILE2. -l --verbose Output byte numbers and values of all differing bytes. -n LIMIT --bytes=LIMIT Compare at most LIMIT bytes. -s --quiet --silent Output nothing; yield exit status only. -v --version Output version info. --help Output this help. SKIP1 and SKIP2 are the number of bytes to skip in each file. SKIP values may be followed by the following multiplicative suffixes: kB 1000, K 1024, MB 1,000,000, M 1,048,576, GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y. If a FILE is `-' or missing, read standard input. Yes, you can attach a USB drive to unRAID. Easiest is to follow the instructions in the wiki.
February 25, 201214 yr another great tool for comparing file integrity is TeraCopy, using its 'verify' function.
February 25, 201214 yr Thanks a bunch. Can you give me link to the wiki? Sure... in my signature line in every post I make. I suggest starting with the un-official documentation. http://lime-technology.com/wiki/index.php?title=Unofficial_Documentation Look in the how-to's for your answer.
February 25, 201214 yr Author I used http://lime-technology.com/wiki/index.php?title=Mounting_an_external_USB_drive_having_an_existing_NTFS_file_system_in_READ/WRITE_mode_to_transport_files_from/to_unRaid_server and it worked like a charm. Thanks. Will be using the compare function shortly.
February 25, 201214 yr How do I compare a full directory to another directory using cmp? one file at a time. or with a script you write if the directories are the same. cd first/directory find . -type f | while read file_name do cmp $file_name /second/path/$file_name done
February 25, 201214 yr Author If I write a script where do i put it to run it? I tried navigating to the first directory and then tried the filename but said No such file or directory". cmp /mnt/disk2/video/kids/movies/filename.avi /mnt/usb/video/kids/movies/filename.avi
February 25, 201214 yr linux has a compare built in. It is called "cmp" So does Windows - fc /b filename1 filename2 at the command line. I often use it with simple for loops in batch files to compare blocks of files within folders using > or >> to direct the comparison result to a text file. It should be possible to use that to validate copies onto a server if required.
February 26, 201214 yr Author I have a external hard drive connected to the unRaid server. I cannot use Windows to do the compare because the mount isn't available externally. So all I need to know is where do I put this script file on the FLASH drive and what file extension do I give it. Thank you.
February 26, 201214 yr The file extension is not important, but most people use ".sh". It is important to make the file executable with "chmod +x filename".
February 26, 201214 yr Author Thanks what directory runs chmod and where do i put the sh file on the flash drive?
February 26, 201214 yr The sh file can go anywhere on the flash. People either use /boot/custom or /boot/local.
March 10, 201214 yr Author We can close this now. I mounted the drive into unRaid event though it was NTFS and did a copy from there.
Archived
This topic is now archived and is closed to further replies.