![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copying files from a remote server to local system with cygwin | patwa | UNIX for Dummies Questions & Answers | 3 | 06-12-2008 04:49 AM |
| Getting remote data through shell script | armohans | Shell Programming and Scripting | 1 | 04-15-2008 05:07 PM |
| File System - Remote or Local?? | Un1xNewb1e | UNIX for Dummies Questions & Answers | 1 | 04-11-2008 01:23 PM |
| how to mount a file system of a remote machine to local file system | cy163 | UNIX for Dummies Questions & Answers | 2 | 01-31-2008 06:04 AM |
| transfer data to a remote system from the tape | jack123 | SUN Solaris | 1 | 06-27-2006 12:43 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
how to verify that copied data to remote system is identical with local data.
I have created simple shell script
#!/bin/sh echo `date`; echo "Start .... find . -mtime +95 -print > /tmp/files.txt for file in `cat /tmp/files.txt` do echo "copying file - $file" /usr/local/bin/scp -p -P 2222 $file remote.hostname:/file/path echo "copid file - $file" done echo "End .... " How to verify that i have copied data successfully to remote system. Thanks Nilesh |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
after you issue scp, check what does $? tell you
|
|
#3
|
||||
|
||||
|
Run a checksum or md5sum on the local files and then run the same on the remote copied files. If the two match, the files are ok.
|
|
#4
|
||||
|
||||
|
Is there any other way to verify expect md5sum ?
|
||||
| Google The UNIX and Linux Forums |
| Tags |
| scp |
| Thread Tools | |
| Display Modes | |
|
|