bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] incremental backups and --one-file-system (version 1.25)


From: Jean-Louis Martineau
Subject: Re: [Bug-tar] incremental backups and --one-file-system (version 1.25)
Date: Mon, 22 Nov 2010 19:39:53 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Hi Paul,

This attached test case succeed with tar-1.23 but fail with tar-1.25

Jean-Louis

Paul Eggert wrote:
On 11/21/2010 10:40 PM, gene heskett wrote:

Aren't the modes amanda uses for incremental ever tested?

Apparently not.  Could you contribute some test cases along those lines?
That would help prevent this sort of problem in the future.


# Process this file with autom4te to create testsuite. -*- Autotest -*-

# Test suite for GNU tar.
# Copyright (C) 2004, 2005, 2006, 2007, 2009 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 <address@hidden>
# References:
#  http://lists.gnu.org/archive/html/bug-tar/2004-06/msg00028.html

AT_SETUP([working --listed and --one-file-system])
AT_KEYWORDS([listed incremental listed04])

AT_TAR_CHECK([
AT_SORT_PREREQ
echo Create directory

mkdir directory

for file in directory/a1 directory/b1
do
  echo File $file > $file
done

sleep 1

echo Creating main archive
echo >&2 "Creating main archive"
tar -c -v --one-file-system --listed-incremental=directory.incr -f archive.1 
directory || exit 1

tar tf archive.1 || exit 1
rm directory.incr

],
[0],
[Create directory
Creating main archive
directory/
directory/a1
directory/b1
directory/
directory/a1
directory/b1
],
[Creating main archive
tar: directory: Directory is new
],
[],[],[gnu, oldgnu])

AT_CLEANUP

reply via email to

[Prev in Thread] Current Thread [Next in Thread]