I have been testing rsync for copying files for the purpose of maintaining a true fail back mirror for HSTPLFSW on MNISUN.
1. Run options: Most of interactive runs are done by
rsync -avze ssh hstplfsw:/web/docs/payload1 /web/docs/payload1/
Notice that there is no / after the source location for a good reason. This creates a large log with the first level -v option (706,0192 bytes). The log file basically lists all the files that were "touched". For a run within cron job, it seems better to do it without -v option:
rsync -aze ssh hstplfsw:/web/docs/payload1 /web/docs/payload1/
This produces a very samll log since it supposed to list only error messages, or would it also list files where there is a change? I do not have chance to see any changes in the files yet. I just noticed that ACS has a 12/20 update. Let me just run rsync on ACS directory and see the way the file is updated and log is recorded.
2 Current rsync on hstlfsw is 2.6.5pre2, while MNISUN is running a slightly older version.
It might not be a problem, but I would like to upgrade both to newer stable versions.
3. It seems that we can install a BLOGing server on our website. I checked Apache website. Apache Roller seems quite nice and a good potential candidate. The question may be if it requires Tomcat and MySQL. That might be more work than what I can take on now.
Thursday, December 20, 2007
Subscribe to:
Post Comments (Atom)
2 comments:
After further test, it does look like 'rsync -aze ssh" will not produce any log unless there is an error. That seems to be a bit too scanty for me. I would like to have a log level that shows all the changed files, and maybe some change statistics.
I focused my monitoring on ACS/scr.dat since it was changed on Dec 20. The command without -v does not seem to update it. Instead, a subdirectory ACS/ACS was created with all the files copied. Something is not right here. I'll have to check the logs.
I think I know the problem. The right command to use should have "/" at the end of the source to mean not creating a new dir if the destination is at the same level of depth. This was the first rsync done. More test and care of monitoring result will be required.
Post a Comment