Checking stream1 and stream2 are synchronized

  1. Log into stage.dswkim.org .
  2. > cd /tmp #or any temporary directory
  3. > ssh -P stream1.dswkim.org find /qttv/htdocs -mtime 0 > stream1
  4. Above will list the files uploaded to stream1.qtv under /qttv/htdocs during the past 24 hours and save as /tmp/stream1.
  5. -mtime 6 will list files uploaded during the past 7 days. Refer to man find.
  6. > ssh -P stream2.dswkim.org find /qttv/htdocs -mtime 0 > stream2
  7. > diff stream1 stream2
  8. When there's no output from diff, stream1 and stream2 are synchronized.
  9. 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