[Ma-linux] Re: [Novalug] Having problems copying data using cp over nfs
Jay Hart
jhart at kevla.org
Wed Jun 20 17:08:01 EDT 2007
Good idea...
Jay
> Rob Payne wrote:
>> To find what files are different, this might help:
>>
>> $ find /home/jhart/Maildir -print > /tmp/orig-files
>> $ find /mntpoint/email/home/jhart/Maildir -print > /tmp/backup-files
>> $ diff /tmp/orig-files /tmp/backup-files
>
> You may want to filter the output of the `find` commands through the
> `sort` utility before `diff`ing the output; that way, if the underlying
> filesystems return the filenames in different orders, you won't get
> spurious differences. For example:
>
>
> $ find /home/jhart/Maildir -print | sort > /tmp/orig-files
> $ find /mntpoint/email/home/jhart/Maildir -print | sort > /tmp/backup-files
> $ diff /tmp/orig-files /tmp/backup-files
>
> Michael Henry
>
More information about the Ma-linux
mailing list