Checking stream1 and stream2 are synchronized
- Log into stage.dswkim.org .
- > cd /tmp #or any temporary directory
- > ssh -P stream1.dswkim.org find /qttv/htdocs -mtime 0 >
stream1
- Above will list the files uploaded to stream1.qtv under /qttv/htdocs
during the past 24 hours and save as /tmp/stream1.
- -mtime 6 will list files uploaded during the past 7 days. Refer to
man find.
- > ssh -P stream2.dswkim.org find /qttv/htdocs -mtime 0 >
stream2
- > diff stream1 stream2
- When there's no output from diff, stream1 and stream2 are synchronized.
- If there's an output, it will list which files/directories not
synchronized. Push the directory again after checking the output.
Copyright© 1999 Daniel SW Kim