# 远程数据同步方式 Access via remote shell: Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST:DEST # 守护进程方式同步数据 Access via rsync daemon: Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST] rsync [OPTION...] rsync://[...
# make sure we're running as root if (( `$ID -u` != 0 )); then { $ECHO "Sorry, must be root. Exiting..."; exit; } fi echo "Starting snapshot on "`date` # attempt to remount the RW mount point as RW; else abort $MOUNT -o remount,rw $MOUNT_DEVICE $SNAPSHOT_RW ; ...
rsync [OPTION] .. src [USER@]host::dest rsync [OPTION] .. rsync://[USER@]host[:port]/src [dest] 对应于以上六种命令格式,rsync有6种不同的工作模式 1.拷贝本地文件 当src 和 dest 路径信息都不包含有单个冒号 ":"分隔符时,就启动这种工作模式 as: rsync -a /data /backup 2.本地机器内容...
SunOS 5.11 Last change: 28 Sep 2013 5 User Commands rsync(1) You may also establish a daemon connection using a program as a proxy by setting the environment variable RSYNC_CON- NECT_PROG to the commands you wish to run in place of making a direct socket connection. The string may ...
# description: The rsync server is a good addition to an ftp server, as it # allows crc checksumming etc. service rsync { disable = no socket_type = stream wait = no user = root server = /usr/bin/rsync server_args = --daemon ...
rsync -av --delete /home/user/documents/ /backup/documents/ 这些是一些基本的用法,可以根据具体需求调整参数和路径。使用 rsync 可以非常灵活地进行文件和目录的复制、同步和备份操作。 4. 处理soft-link的复制问题 用-L选项,将soft-link直接复制为实体目录和文件,以解决复制后soft-link失效的问题。
d/rsync #default: off # description: The rsync server is a good addition to an ftp server, as it \ # allows crc checksumming etc. service rsync { disable = no socket_type = stream wait = no user = root server = /usr/bin/rsync server_args = --daemon log_on_failure += USERID ...
or rsync [OPTION]... [USER@]HOST:SRC [DEST] or rsync [OPTION]... [USER@]HOST::SRC [DEST] or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST] 从语法结构我们可以看出, 源和目标即可以在本地也可以在远端. 如果是远端的话,需要指明登录用户名, 远端服务器名, 和远端文件或目录...
指定rsync发送日志消息给syslog时的消息级别,常见的消息级别是:uth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, security, sys-log, user, uucp, local0, local1, local2, local3,local4, local5, local6和local7。默认值是daemon。
--devices preserve device files(super-user only)--copy-devices copy device contents as a regular file --write-devices write to devices as files(implies --inplace)--specials preserve special files -D same as --devices --specials --times, -t preserve modificationtimes--atimes, -U preserve ...