Skip to content

Commit

Permalink
Merge pull request #11 from whoiami/master
Browse files Browse the repository at this point in the history
Update rsync readme
  • Loading branch information
baotiao authored Nov 24, 2020
2 parents 07e9999 + 09636c0 commit c18967a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions slash/src/README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit c18967a

Please sign in to comment.