From 09636c078b02f0a4d6484e97a57fe25d3370183f Mon Sep 17 00:00:00 2001 From: whoiami Date: Tue, 10 Apr 2018 15:25:08 +0800 Subject: [PATCH] Update rsync readme --- slash/src/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 slash/src/README.md diff --git a/slash/src/README.md b/slash/src/README.md new file mode 100644 index 0000000..6b6117a --- /dev/null +++ b/slash/src/README.md @@ -0,0 +1,13 @@ +Slash + +Rsync + +slash/include/rsync.cc + +Rsync module is designed to sync document between hosts. + +In the destination host, a deamon is setup by calling slash::StartRsync. Meanwhile, rsync config file is created under "raw_path". + +In the source host, several slash::RsyncSendFile is invoked, it depends on the files you may need to sync. Then, if you need to delete the files in the remove folder that don't exist in the source host, slash::RsyncSendClearTarget is standby. + +After RsyncSendFile process, in the destination host, slash::StopRsync will help you terminate rsync deamon and cleanup everything for you. \ No newline at end of file