]> Dogcows Code - chaz/tar/blob - tests/listed01.sh
Check listed incremental backups on individual files.
[chaz/tar] / tests / listed01.sh
1 #! /bin/sh
2
3 # Check if listed-incremental backups work for individual files.
4
5 # This file is part of GNU tar testsuite.
6 # Copyright (C) 2004 Free Software Foundation, Inc.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 # 02111-1307, USA.
22
23 . ./preset
24 . $srcdir/before gnu oldgnu
25
26 mkdir directory
27 dd if=/dev/zero of=directory/file1 bs=1024 count=10 2>/dev/null
28 # Let the things settle
29 sleep 1
30
31 tar --create \
32 --file=archive.1 \
33 --listed-incremental=listing \
34 directory/file*
35
36 tar tf archive.1
37
38 dd if=/dev/zero of=directory/file2 bs=1024 count=20 2>/dev/null
39
40 echo "separator"
41
42 tar --create \
43 --file=archive.2 \
44 --listed-incremental=listing \
45 directory/file*
46
47 tar tf archive.2
48
49 out="\
50 directory/file1
51 separator
52 directory/file2
53 "
54
55 . $srcdir/after
This page took 0.041714 seconds and 5 git commands to generate.