I've been very happily using rsync to make periodic backups of my server to an office machine. I decided that, since it worked so nicely, I would also use it in the other direction, to back up an office 'library' directory to my server, so as to have an off-site safety backup of our office files.
Because our office machines sit behind a firewall, I do not have the skills to have the server call in through the firewall, so I wanted the script to run on the office machine. It appeared to fail, and then I noticed that rsync can run in a daemon mode, so I started up the rsync daemon on my server ('rsync --daemon'), and then with just a little tinkering created a script that ran on the office machine and copied the desired files onto the desired directory on the server. So far, so good.
Now, when I am done with this action, I do not want to leave the rsync daemon running. It just goes against my grain, because it could be insecure. However, searching the rsync documentation as best I can, I cannot find any flag that stops the daemon.
Does anybody know what the correct command would be? Or can anybody confirm that there is no such command, and in that case, please advise me of the kindest way to close a running daemon in general?
I did a search here, but the subject appears never to have arisen before. I would be very grateful for any assistance.



LinkBack URL
About LinkBacks
Reply With Quote




