⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compare-dest.test

📁 Rsync 3.0.5 source code
💻 TEST
字号:
#! /bin/sh# Copyright (C) 2004 by Wayne Davison <wayned@samba.org># This program is distributable under the terms of the GNU GPL (see# COPYING).# Test rsync handling of the --compare-dest option.. "$suitedir/rsync.fns"alt1dir="$tmpdir/alt1"alt2dir="$tmpdir/alt2"# Build some files/dirs/links to copyhands_setup# Setup the alt and chk dirs$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$alt1dir/"$RSYNC -av --include=etc-ltr-list --include='*/' --exclude='*' "$fromdir/" "$alt2dir/"sleep 1touch "$fromdir/dir/text"$RSYNC -av --exclude=/text --exclude=etc-ltr-list "$fromdir/" "$chkdir/"# Let's do it!checkit "$RSYNC -avv --no-whole-file \    --compare-dest='$alt1dir' --compare-dest='$alt2dir' \    '$fromdir/' '$todir/'" "$chkdir" "$todir"checkit "$RSYNC -avv --no-whole-file \    --copy-dest='$alt1dir' --copy-dest='$alt2dir' \    '$fromdir/' '$todir/'" "$fromdir" "$todir"# The script would have aborted on error, so getting here means we've won.exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -