hypercore
V2EX  ›  问与答

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

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

    原来箱子还有Linux版,孤陋寡闻了。
    感谢已送。
    iZr
    iZr
    May 12, 2013
    8
    @hypercore 我还不知道,求网站。
    hypercore
    hypercore
    OP
    May 12, 2013
    9
    @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   ·   Privacy   ·   Solana   ·   1428 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 10:18 · PVG 18:18 · LAX 02:18 · JFK 05:18
    ♥ Do have faith in what you're doing.