Hi friends
I need copied 100gd of data to other Solaris server. Could anyone help me guiding appropriate way of checking data integrity at source and destination so can I delete the data at source location . How can print/check cksum of individual file in each folder and match it with destination.
Thanks in advance
Why not? It doesn't really write the archive into a file, it writes it to stdout, just to pipe it to sha1sum. The idea is to make a checksum of one tarball instead of every file. But as I say, I would check the tar and gzip versions if you get different checksums before starting to panic.
Quote:
also it is multiple directories of each @100 gb
You could write a for loop to loop through all the root directories and run the above commands.
The idea here is to ensure that we get lists of files in exactly the same order, find out the checksum for each file, then compare the two lists. We do the compare on the source computer in case we need to generate a list of files to re-copy.
It is important that we sort the output from find because they will never be the same order after this sort of copy.
This assumes that you have copied the files and need to check that the files are identical.
Footnote: I would strongly advise that any file copy method you use preserves the file permissions and timestamps and preserves directory permissions. This can be more difficult than it sounds unless you ensure that the account UID's and GIDs match on both computers. It is impossible to preserve the directory timestamps.
@alister
I somehow knew that someone would know a way round this issue.
I'd be very interested in bulk file copy products for unix which can preserve the timestamps on both the files AND the directories.
Current best technique for unix uses disc mirroring software.
If anybody knows of a similar product for Windows Server 2003/2008 I'm very interested. Current technique also uses disc mirroring software.
My only interest is the best technique for blunt technology upgrades. i.e. Increasing the size of physical discs and swapping the mother board for a better one.
What we do at the moment is mirror the data discs to larger discs, smash the mirror, fit the new discs into a better cold-build system, and import the data discs. This technique has the advantage that the original computer is preserved intact but it can be a bit time-consuming.
Hello,
I would like to know if it's a good practice to check the file permissions of the contents of a directory before moving them. For example:
mv -- "$directory"/* "$directory"/.* "$directory"/..?* "$destination"The variables $directory and $destination contain the path to an existing... (6 Replies)
Hello
I thought of different ways of integrity check for the backup and look for the fastest approach to start programming.
in all these approaches randomness is used.
I would appreciate if someone give more suggestions or correct me.
1- Machine Name Check We can check if the machines were... (5 Replies)
Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Hello All,
Today i have been asking lots of question, hope to become good in scripting soon with all the wonderful advices i get. The question is i want to sort data a get uniq string from it. The code i am using to generate the output is:-
check_sun() {
for i in $SUN_PLATFORM
do
$ECHO... (0 Replies)
Hi all,
I need help now to stick the value inside $RHAT_PRODUCT and display that in every line in the output. What changes in the code can i do.
Please suggest
Thanks
Adsi
#!/bin/sh
ECHO=/bin/echo
FIND=/bin/find
AWK=/bin/awk
LS=/bin/ls
GREP=/bin/grep
... (1 Reply)
Hi All,
After Sorting directories and files i have got following output as below, now i only want the strings common in them, so the actual output should be as below in the bottom. How do i do that?
Thanks
-adsi
File to be modified:-
Common Components for ----> AA... (4 Replies)
Dear All,
Please view the below mentioned text and help me in arranging data in format like
DATE TIME Value (2nd-Feild)
e.g.
20-JUN-209 00:25:38 69.00
...........
...........
...........
...........
and so on till the file end.
20-JUN-2009 00:25:38, 195.20, ... (10 Replies)
Hi,
I have two NFS shares mounted on a solaris system.
share1 and share2 , both are from different NFS servers
share1 has 500GB of data
share 2 is empty. I am copying all the data from share1 to share2.
It is like migrating the data from one NFS share to another.
Is there... (8 Replies)