差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
linux:rsync_and_ssh_remote_server_fast_backup [2019/01/22 00:13] – [ローカルフォルダ → リモートサーバ の転送] ともやん | linux:rsync_and_ssh_remote_server_fast_backup [2019/01/30 09:15] – [rsync で同期中に Operation not permitted のエラーが出る] ともやん | ||
---|---|---|---|
行 83: | 行 83: | ||
< | < | ||
$ rsync -avzP --delete --no-inc-recursive -e ssh user@remote.srv.com:/ | $ rsync -avzP --delete --no-inc-recursive -e ssh user@remote.srv.com:/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== rsync で同期中に Operation not permitted のエラーが出る ==== | ||
+ | 以下のようなエラーが出る場合は、rsync がファイルシステムのタイムスタンプやパーミッションをセットする権限がないため発生している。\\ | ||
+ | < | ||
+ | rsync: failed to set times on "/ | ||
+ | </ | ||
+ | 権限のあるユーザーで同期するか、sudo を付けて実行するとエラーはでなくなる。\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ sudo $ rsync -avz --delete -e ssh user@remote.server.com:/ | ||
</ | </ | ||
</ | </ |