hypercore
V2EX  ›  问与答

OS X和Linux间如何自动同步文件?

  •  
  •   hypercore · May 11, 2013 · 4773 views
    This topic created in 4774 days ago, the information mentioned may be changed or developed.
    每次都要手动scp很是不爽,有这方面的命令或脚本么?
    9 replies    1970-01-01 08:00:00 +08:00
    9hills
        1
    9hills  
       May 11, 2013 via Android   ❤️ 1
    rsync
    dropbox
    xzl380
        2
    xzl380  
       May 11, 2013   ❤️ 1
    --DropBox
    --BitTorrent Sync
    ziseyinzi
        3
    ziseyinzi  
       May 11, 2013   ❤️ 1
    落箱子
    gyao
        4
    gyao  
       May 11, 2013 via iPhone
    unison
    Zhang
        5
    Zhang  
       May 11, 2013   ❤️ 1
    @ziseyinzi 你说的是“空投箱”?
    bearcat001
        6
    bearcat001  
       May 11, 2013
    samba比较好……我一般直接在mac上改linux上的代码,就用这个
    hypercore
        7
    hypercore  
    OP
       May 11, 2013
    @9hills
    @fangpeishi
    @ziseyinzi
    @Zhang

    原来箱子还有Linux版,孤陋寡闻了。
    感谢已送。
    iZr
        8
    iZr  
       May 12, 2013
    @hypercore 我还不知道,求网站。
    hypercore
        9
    hypercore  
    OP
       May 12, 2013
    @iZr
    https://www.dropbox.com/install?os=lnx

    package支持Ubuntu, Fedora和Debian。有源代码可自行编译。
    其实更方便的方法就是下载那个CLI脚本,然后就很简单了:

    $ cd ~ && wget https://linux.dropbox.com/packages/dropbox.py //下载CLI脚本
    $ python dropbox.py start -i //启动守护进程,若没有则询问是否下载package
    $ y //确认下载
    $ python dropbox.py autostart y //开机自动启动守护进程
    $ python dropbox.py start //获取机器token
    To link this computer to a dropbox account, visit the following url:
    https://www.dropbox.com/cli_link?host_id=xxxxxxxxxxxxxxxxxxxxxxxxxxx
    //使用任意电脑访问以上地址然后登陆就link完毕了。等半分钟,然后:
    $ python dropbox.py status
    Dropbox is running! //link成功
    //or
    Waiting to be linked to an account... //在等一会儿,脚本执行stop然后start重试

    会自行安装到~/.dropbox-dist,内部有守护进程dropboxd;~/.dropbox用于存放token和其他数据。
    默认目录为~/Dropbox。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2748 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 12:30 · PVG 20:30 · LAX 05:30 · JFK 08:30
    ♥ Do have faith in what you're doing.