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

📄 listed02.at

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻 AT
字号:
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 3, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA# 02110-1301, USA.# Check if listed-incremental backups work for files moved from one directory# to another. # Based on a script by Martin Simmons <ZYHYLCRMZPRP@spammotel.com># References: #  <20040626230315.163AA1D148@cpc5-cmbg1-6-0-cust208.cmbg.cable.ntl.com>#  http://lists.gnu.org/archive/html/bug-tar/2004-06/msg00028.htmlAT_SETUP([working --listed])AT_KEYWORDS([listed incremental listed02])AT_TAR_CHECK([AT_SORT_PREREQecho Create directoriesmkdir tartsleep 1mkdir tart/c0sleep 1mkdir tart/c1sleep 1for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2do  echo File $file > $file  sleep 1donesleep 1echo Creating main archivetar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1# The above prints two lines to stderr announcing the new directories c0 and c1.# Ensure that they appear in this script's stderr in sorted order.sort err 1>&2; rm -f errsleep 1echo Modifying filesystemrm tart/a1mv tart/b1 tart/b2mv tart/c1 tart/c2touch tart/c2/ca3echo Directory contentsfind tart -print | sort 2>/dev/nullsleep 1echo Creating incremental archivecp -p tart.incr1 tart.incr2tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1 sleep 1rm -rf tart/*echo Extracting main archivetar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1echo Extracting incremental archive# This command should produce three messages about deletion# of the existing files, that may appear in any order. Piping# to sort makes sure we don't depend on any particular ordering.tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null echo Final files:find tart -print | sort 2>/dev/null],[0],[Create directoriesCreating main archivetart/tart/c0/tart/c1/tart/a1tart/b1tart/c0/cq1tart/c0/cq2tart/c1/ca1tart/c1/ca2Modifying filesystemDirectory contentstarttart/b2tart/c0tart/c0/cq1tart/c0/cq2tart/c2tart/c2/ca1tart/c2/ca2tart/c2/ca3Creating incremental archivetart/tart/c0/tart/c2/tart/b2tart/c2/ca3Extracting main archivetart/tart/c0/tart/c1/tart/a1tart/b1tart/c0/cq1tart/c0/cq2tart/c1/ca1tart/c1/ca2Extracting incremental archivetar: Deleting `tart/a1'tar: Deleting `tart/b1'tart/tart/b2tart/c0/tart/c2/tart/c2/ca3Final files:tarttart/b2tart/c0tart/c0/cq1tart/c0/cq2tart/c2tart/c2/ca1tart/c2/ca2tart/c2/ca3],[tar: tart/c0: Directory is newtar: tart/c1: Directory is newtar: tart/c2: Directory has been renamed from `tart/c1'],[],[],[gnu, oldgnu])AT_CLEANUP

⌨️ 快捷键说明

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