helpstoreBackup - Support: sr #108466, exceptDirs will not be recognized

 
 

sr #108466: exceptDirs will not be recognized

Submitter:  None
Submitted:  Wed 08 Jan 2014 06:29:31 AM UTC
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Fri 10 Jan 2014 02:15:01 PM UTC, comment #3: 

Maybe I'll find the time to write a short chapter about that topic.

There are several possibilities to include / exclude directories or files:

exceptDirs
includeDirs
followLinks
exceptRule (with function MARC_DIR and MARC_DIR_REC)

Regards,
Heinz-Josef

Heinz-Josef Claes <hjclaes>
Project Administrator
Thu 09 Jan 2014 10:39:13 PM UTC, comment #2: 

Hello Heinz-Josef,

thank you for your reply.

The only way I can get it work is to set

exceptDirs=
includeDirs=201[024]

But this is not the way to go. Every time a new directory is added in sourceDir I have to remember to add it in the backup-script.
But when I try the other way round and just set the exceptDirs I get a full backup of sourceDir.

exceptDirs=200* 2011 2013
;includeDirs=

It seams that exceptDirs is just working for subdirectories of the directories in sourceDir as you described in the example with nosave.

If so it would be good to change the documentation for this two parameters.

Regards,
Sebastian

Anonymous
Thu 09 Jan 2014 05:40:52 PM UTC, comment #1: 

Hi,

you are using wildcards, this means in your example the configuration is:

exceptDirs=2011 2013
includeDirs=2010 2011 2012 2013 2014

So you tell storeBackup.pl to exclude and to include 2011 and 2013 at the same time. This doesn't make too much sense. I think storeBackup.pl should generate an error message.

Btw, the following configuration should do what you expect:

exceptDirs=
includeDirs=2010 2012 2014

or you can configure (with wildcards)

exceptDirs=
includeDirs=201[024]

You can use exceptDirs to exclude sub-directories inside the includeDirs. Let's say each of your directories you want to save has a subdirectory named "nosave" which you want to exclude, you can configure:

exceptDirs= 201[024]/nosave
includeDirs=201[024]

I hope this helps.

Regards,
Heinz-Josef

Heinz-Josef Claes <hjclaes>
Project Administrator
Wed 08 Jan 2014 06:29:31 AM UTC, original submission:  

Hello,

I want to use storebackup for my backups at home.
After some tests everything works fine, except for one thing.
I can't get the exceptDirs working.

The configuration:
backupDir=/backuptest/dest
cpIsGnu=yes
exceptDirs=2011 2013
includeDirs=201*
otherBackupSeries=0:inexlist
series=inexlist
sourceDir=/backuptest/src

And the filetree:
mkdir backuptest
cd backuptest
mkdir src dest backups
cd src
mkdir 2008 2009 2010 2011 2012 2013 2014

In my opinion I should just find the files in 2010, 2012 and 2014
in the backup. But they are all in (201*).
Where is my mistake?

Thanks,
Sebastian

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hjclaes (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9