使用 rsync 出错:rsync: chgrp "XXXX" failed: Operation not permitted

You are probably running rsync like this:

rsync -a dir/ remote:/dir/

The -a option according to the documentation is equivalent to: -rlptgoD

      -a, --archive    archive mode; equals -rlptgoD (no -H,-A,-X)

You probably want to remove the -o and -g options:

      -o, --owner                 preserve owner (super-user only)
      -g, --group                 preserve group

So instead your rsync command should look something like this:

rsync -rlptD dir/ remote:/dir/

Or as @glglgl points out:

rsync -a --no-o --no-g dir/ remote:/dir/

The remaining options in use are:

      -r, --recursive             recurse into directories
      -l, --links                 copy symlinks as symlinks
      -p, --perms                 preserve permissions
      -t, --times                 preserve modification times
      -D                          same as --devices --specials
          --devices               preserve device files (super-user only)
          --specials              preserve special files
时间: 2024-12-09 16:57:50

使用 rsync 出错:rsync: chgrp "XXXX" failed: Operation not permitted的相关文章

adb remount 失败:remount failed: Operation not permitted

adb remount 失败:remount failed: Operation not permitted 关于ADB的使用,这里再说明下:常用命令 adb shell - 登录设备shell,后面也可直接跟运行命令.如:adb shell rm -r /system/sd/app adb pull - 从手机中下载文件到电脑上.如:adb pull /data/app_s/Stock.apk C:\\Stock.apk adb push - 从电脑中上传文件到手机上.如:adb push C

rsync: chgrp "." (in backup) failed:Operation not

rsync: chgrp ".passwd.DKh65W" (in backup) failed: Operation not permitted (1) [[email protected] tmp]# rsync -avz /etc/passwd [email protected]::backup Password: sending incremental file listpasswdrsync: chgrp ".passwd.DKh65W" (in back

文件触发式实时同步 Rsync+Sersync Rsync+Inotify-tools

一.概述 1.Rsync+Sersync 是什么? 1)Sersync使用c++编写基于inotify开发的触发机制: 2)Sersync可以监控所监听的目录发生的变化(包括新建.修改.删除),具体到一个文件名或目录名,然后触发rsync同步,只同步发生改变的文件或目录.如果只是目录下的文件发生变化,则只会同步变化的文件而不会同步目录.只有目录本身发生变化的时候才会同步目录. 3)自带crontab功能,只需在 xml配置文件中开启,即可按您的要求,隔一段时间整体同步一次.无需再额外配置cron

配置Rsync和Rsync + inotify

第一部分:配置Rsync 一.介绍Rsync工具 rsync是一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件.它使用所谓的"Rsync演算法"来使本地和远程两个主机之间的文件达到同步,这个算法只传送两个文件的不同部分,而不是每次都整份传送,因此速度相当快.所以通常可以作为备份工具来使用. Rsync的特性如下: 1)支持拷贝特殊文件如链接,设备等 2)可以有排除指定文件或目录同步的功能,相当于打包命令tar 3)可以保持原来文件或目录的权限,时间,软硬链接等所有属性

rsync+crontab(rsync+inotify)

一.rsync介绍 rsync全称remote sync,是一种更高效.可以本地或远程同步的命令,之所以高效是因为rsync会对需要同步的源和目的进度行对比,只同步有改变的部分,所以比scp命令更高效,但是rsync本身是一种非加密的传输,可以借助-e选项来设置具备加密功能的承载工具进行加密传输 二.rsync的工作模式 1.shell模式,也称作本地模式 如:rsync -av dir1   /tmp/ 2.远程shell模式,此时可以利用ssh协议承载其数据传输过程 如:rsync -av

man rsync翻译(rsync命令中文手册)

本文为命令rsync的man文档翻译,几乎所有的选项都翻译了,另外关于筛选规则部分只翻译了一部分.由于原文很多地方都比较啰嗦,所以译文中有些内容可能容易让国人疑惑,所以我个人在某些地方加上了注释.若有错误之处,盼请指出.   rsync(1) rsync(1) 名称 rsync - 一个快速.多功能的远程(和本地)文件拷贝工具 摘要 Local: rsync [OPTION...] SRC... [DEST] Access via remote shell: Pull: rsync [OPTIO

svn出错:directory 'xxxx' is out of date

解决方案:右键你所要提交的文件,team-->update 更新最新版本 然后再提交 svn出错:directory 'xxxx' is out of date

android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs 解决方式:这个情况是有不同版本的 SDK 并不能合并,建议降低主程序target SDK版本. android studio导入项目出错:Error:Execution failed for task ':app:proce

Server Data Synchronization Via Linux rsync、rsync+inotify Between Load Balance Server

目录 1. 远程文件同步的应用场景 2. rsync+crontab 3. rsync+inotify 1. 远程文件同步的应用场景 在负载均衡集群的应用场景中,往往在多台web server的前端有一个提供负载均衡的Load Balance Server 1. 客户端的通过访问一个统一的域名到这个Load Balance上,例如:www.test.com,Load Balance Server会根据负载调度算法将请求合理地分配到集群的子节点中 2. 客户端上传的文件同样也会被Load Bala