• 请不要在回答技术问题时复制粘贴 AI 生成的内容
movq
V2EX  ›  程序员

使用 rsync 同步 2 台机器的代码文件夹,需要保留文件修改时间,而且需要让两台机器拥有同样的权限,该使用什么参数?

  •  
  •   movq · Oct 5, 2022 · 1763 views
    This topic created in 1341 days ago, the information mentioned may be changed or developed.

    两台机器都是 mac ,但是用户名不一样

    我看-p 这个 flag 是保留所有权限,-t 是 preserve modification time ,那么-rpt 这样是否就行了

    2 replies    2022-10-05 16:04:53 +08:00
    mineralsalt
        1
    mineralsalt  
       Oct 5, 2022
    这个很难测试吗?
    SoloKing
        2
    SoloKing  
       Oct 5, 2022 via Android
    -av 是不是都包括了 看看 help
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    ♥ Do have faith in what you're doing.