incr03.at
来自「gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件」· AT 代码 · 共 81 行
AT
81 行
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 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.# Description:# Previous versions checked only mtime/ctime of directories during# incremental backups. As a result, it sufficed to rename a single file# to get full dump of the directory where it resided. Since v.1.15.91# tar checks directory contents as well, so in this case only the renamed# file is dumped.AT_SETUP([renamed files in incrementals])AT_KEYWORDS([incremental incr03 rename])AT_TAR_CHECK([AT_SORT_PREREQmkdir directorygenfile --file=directory/xgenfile --file=directory/ysleep 1tar -cf archive.1 -g db directorymv directory/x directory/ztar -cf archive.2 -g db directorymv directory origecho Listing of archive.1tar -tf archive.1 | sort echo Listing of archive.2tar -tf archive.2 | sort echo Directory after first restoretar -xf archive.1 -g dbfind directory | sortecho Directory after second restoretar -xf archive.2 -g dbfind directory | sort ],[0],[Listing of archive.1directory/directory/xdirectory/yListing of archive.2directory/directory/zDirectory after first restoredirectorydirectory/xdirectory/yDirectory after second restoredirectorydirectory/ydirectory/z],[],[],[],[gnu, oldgnu, posix])AT_CLEANUP# End of incr03.at
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?