rdiff-backup-bugs
[Top][All Lists]
Advanced

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

[Rdiff-backup-bugs] [bug #29808] --max-file-size does not combine with -


From: Peter McGill
Subject: [Rdiff-backup-bugs] [bug #29808] --max-file-size does not combine with --include and --exclude
Date: Thu, 06 May 2010 15:52:15 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

URL:
  <http://savannah.nongnu.org/bugs/?29808>

                 Summary: --max-file-size does not combine with --include and
--exclude
                 Project: rdiff-backup
            Submitted by: pamcgill
            Submitted on: Thu 06 May 2010 03:52:14 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I'm running version 1.2.8 (On Windows 7 for this example test)

Given the following Source directory:
 Directory of C:\Users\Peter\Test\Source

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:59 AM    <DIR>          Include
06/05/2010  10:54 AM            99,528 large.txt
06/05/2010  10:53 AM                12 small.txt
               2 File(s)         99,540 bytes

 Directory of C:\Users\Peter\Test\Source\Include

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:55 AM    <DIR>          Exclude
06/05/2010  10:54 AM            99,528 large.txt
06/05/2010  10:53 AM                12 small.txt
               2 File(s)         99,540 bytes

 Directory of C:\Users\Peter\Test\Source\Include\Exclude

06/05/2010  10:55 AM    <DIR>          .
06/05/2010  10:55 AM    <DIR>          ..
06/05/2010  10:54 AM            99,528 large.txt
06/05/2010  10:53 AM                12 small.txt
               2 File(s)         99,540 bytes

And the include file test.txt:
- C:/Users/Peter/Test/Source/Include/Exclude
C:/Users/Peter/Test/Source/Include

Running either of the following two commands results in the following backup
directory:
"C:\Program Files\rdiff-backup\rdiff-backup.exe" --max-file-size 50000
--include-globbing-filelist C:/Users/Peter/Test/test.txt --exclude **
C:/Users/Peter/Test/Source C:/Users/Peter/Test/Dest
"C:\Program Files\rdiff-backup\rdiff-backup.exe" --max-file-size 50000
--exclude C:/Users/Peter/Test/Source/Include/Exclude --include
C:/Users/Peter/Test/Source/Include --exclude ** C:/Users/Peter/Test/Source
C:/Users/Peter/Test/Dest

 Directory of C:\Users\Peter\Test\Dest

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:59 AM    <DIR>          Include
06/05/2010  11:28 AM    <DIR>          rdiff-backup-data
06/05/2010  10:53 AM                12 small.txt
               1 File(s)             12 bytes

 Directory of C:\Users\Peter\Test\Dest\Include

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:55 AM    <DIR>          Exclude
06/05/2010  10:53 AM                12 small.txt
               1 File(s)             12 bytes

 Directory of C:\Users\Peter\Test\Dest\Include\Exclude

06/05/2010  10:55 AM    <DIR>          .
06/05/2010  10:55 AM    <DIR>          ..
06/05/2010  10:53 AM                12 small.txt
               1 File(s)             12 bytes

Which completely ignores the include/exclude options.

Conversely running either of the following two commands produces the
following backup directory:
"C:\Program Files\rdiff-backup\rdiff-backup.exe" --include-globbing-filelist
C:/Users/Peter/Test/test.txt --exclude ** --max-file-size 50000
C:/Users/Peter/Test/Source C:/Users/Peter/Test/Dest
"C:\Program Files\rdiff-backup\rdiff-backup.exe" --exclude
C:/Users/Peter/Test/Source/Include/Exclude --include
C:/Users/Peter/Test/Source/Include --exclude ** --max-file-size 50000
C:/Users/Peter/Test/Source C:/Users/Peter/Test/Dest

 Directory of C:\Users\Peter\Test\Dest

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:59 AM    <DIR>          Include
06/05/2010  11:35 AM    <DIR>          rdiff-backup-data
               0 File(s)              0 bytes

 Directory of C:\Users\Peter\Test\Dest\Include

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:54 AM            99,528 large.txt
06/05/2010  10:53 AM                12 small.txt
               2 File(s)         99,540 bytes

Completely ignoring the max-file-size option.

A much more desirable result would be to match both the include/exclude
options and the max-file-size option resulting in a directory as follows:
 Directory of C:\Users\Peter\Test\Dest

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:59 AM    <DIR>          Include
06/05/2010  11:35 AM    <DIR>          rdiff-backup-data
               0 File(s)              0 bytes

 Directory of C:\Users\Peter\Test\Dest\Include

06/05/2010  10:59 AM    <DIR>          .
06/05/2010  10:59 AM    <DIR>          ..
06/05/2010  10:53 AM                12 small.txt
               1 File(s)             12 bytes

Peter





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?29808>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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