Keep Remote Directory Up-to-date

后端 未结 17 1723
一向
一向 2021-01-30 06:39

I absolutely love the Keep Remote Directory Up-to-date feature in Winscp. Unfortunately, I can\'t find anything as simple to use in OS X or Linux. I know the same thing can

17条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 07:21

    How "real-time" do you want the syncing? I would still lean toward rsync since you know it is going to be fully supported on both platforms (Windows, too, with cygwin) and you can run it via a cron job. I have a super-simple bash file that I run on my system (this does not remove old files):

    #!/bin/sh
    rsync -avrz --progress --exclude-from .rsync_exclude_remote . remote_login@remote_computer:remote_dir    
    
    # options
    #   -a  archive
    #   -v  verbose
    #   -r  recursive
    #   -z  compress 
    

    Your best bet is to set it up and try it out. The -n (--dry-run) option is your friend!

    Keep in mind that rsync (at least in cygwin) does not support unicode file names (as of 16 Aug 2008).

提交回复
热议问题