lgm wrote:thanks for the detailed reply, LocoDeiColor.
i was looking at diff and thought it would probably take forever the compare 2T of data line by line, especially since it does not seem to take dirs as inputs.
Diff
does accept directories as inputs. I just did
- Code: Select all
cd /volume1
diff -r music photo
and it's still giving me output. So you could do [code]diff -r source target > /volume1/admin/filename.txt to have the results piped to a file.
as to resync, can i specify a dir under volume1 or 2 instead of the whole volume?
You can specify whatever you want.
i was really just looking to do a parity check on all files copied. a rsync dry run would only give a list of missing files and a rsync, it seems to me, would do the copy all over again? which still leaves me with a unverified copy.
That's why I suggested using rsync instead. Rsync uses MD5 to hash the files and make sure they match. It then only copies what doesn't match. A little known caveat of rsync, though, is that you need to use a slash after the source directory, or it's going to include the directory in the sync.