Re: [BackupPC-users] Problems excluding files.

2008-08-05 Thread Gabriel Landais
On Tue, Aug 5, 2008 at 05:36, Steve Blackwell [EMAIL PROTECTED] wrote:
 Aahh!!! Thanks Holger.
 I had not understood the use of the hash key. I thought it was just a
 kind of group name for some excludes.
 Now everything is working as expected.

 Steve

Hi,
 it is not greatly explained in doc. So I'll just set * for all my
exclude keys. Directly in pl files as web interface does not allow
that :(
 Cheers
 Gabriel

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Problems excluding files.

2008-08-05 Thread Bowie Bailey
Gabriel Landais wrote:
 On Tue, Aug 5, 2008 at 05:36, Steve Blackwell [EMAIL PROTECTED]
 wrote: 
  Aahh!!! Thanks Holger.
  I had not understood the use of the hash key. I thought it was just
  a kind of group name for some excludes.
  Now everything is working as expected.
  
  Steve
 
 Hi,
  it is not greatly explained in doc. So I'll just set * for all my
 exclude keys. Directly in pl files as web interface does not allow
 that :(
  Cheers
  Gabriel

The web interface didn't give me any problems creating a * key.  What
happened when you tried it?

-- 
Bowie

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Problems excluding files.

2008-08-04 Thread Steve Blackwell
The documentation for $Conf{TarClientCmd} says

...
Also, you will probably want to add ``/proc'' to
$Conf{BackupFilesExclude}.

The following variables are substituted at run-time:
...
$fileListspecific files to backup or exclude
...

I took this to mean that $fileList takes care of excluding the files in
$Conf{BackupFilesExclude}. 

I have the following in my host.pl file:

$Conf{BackupFilesExclude} = {
  'system' = [
'/proc',
'/sys',
'/tmp'
  ],
  'backup' = [
'/media'
  ]
};

but the log show that it is still trying to backup /sys and /proc.

Contents of file /media/disk/pc/steve/XferLOG.6.z, modified 2008-08-04
01:08:44 (Extracting only Errors)

Running: /usr/bin/sudo /bin/tar -c -v -f - -C / --totals
--newer=2008-07-29 17:06:39 . incr backup started back to 2008-07-29
17:06:39 (backup #2) for directory / Xfer PIDs are now 25863,25862
[ skipped 36677 lines ]
/bin/tar: ./sys/devices/platform/uevent: File shrank by 4096 bytes;
padding with zeros

Id there something wrong with my $Conf{BackupFilesExclude} or do I need
to add --exclude something to TarIncrArgs?

Thanks,
Steve

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Problems excluding files.

2008-08-04 Thread Holger Parplies
Hi,

Steve Blackwell wrote on 2008-08-04 18:31:38 -0400 [[BackupPC-users] Problems 
excluding files.]:
 [...]
 I have the following in my host.pl file:
 
 $Conf{BackupFilesExclude} = {
   'system' = [
 '/proc',
 '/sys',
 '/tmp'
   ],
   'backup' = [
 '/media'
   ]
 };
 
 but the log show that it is still trying to backup /sys and /proc.
 
 Contents of file /media/disk/pc/steve/XferLOG.6.z, modified 2008-08-04
 01:08:44 (Extracting only Errors)
 
 Running: /usr/bin/sudo /bin/tar -c -v -f - -C / --totals
 --newer=2008-07-29 17:06:39 . incr backup started back to 2008-07-29
 17:06:39 (backup #2) for directory / Xfer PIDs are now 25863,25862
 [...]
 
 Id there something wrong with my $Conf{BackupFilesExclude}

yes.

 or do I need to add --exclude something to TarIncrArgs?

No.

You need to use the share name as hash key. Since you're using XferMethod
tar, chances are your share is /, so you'd have

  $Conf{BackupFilesExclude} = {
'/' = [
  '/proc',
  '/sys',
  '/tmp'
],
'/whatever/share/you/mean/by/backup' = [
  '/media'
]
  };

You *can* use '*' as hash key if you want the excludes to apply to every share
not explicitly given an exclude list, but it seems better practise (and less
error prone) to explicitly list excludes by share like you did.

Regards,
Holger

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Problems excluding files.

2008-08-04 Thread Steve Blackwell
 Hi,

 Steve Blackwell wrote on 2008-08-04 18:31:38 -0400 [[BackupPC-users]
 Problems excluding files.]:
 [...]

 Id there something wrong with my $Conf{BackupFilesExclude}  

 yes.

 or do I need to add --exclude something to TarIncrArgs?  

 No.

 You need to use the share name as hash key. Since you're using
 XferMethod tar, chances are your share is /, so you'd have

   $Conf{BackupFilesExclude} = {
 '/' = [
   '/proc',
   '/sys',
   '/tmp'
 ],
 '/whatever/share/you/mean/by/backup' = [
   '/media'
 ]
   };

 You *can* use '*' as hash key if you want the excludes to apply to
 every share not explicitly given an exclude list, but it seems better
 practise (and less error prone) to explicitly list excludes by share
 like you did.
 
 Regards,
 Holger

Aahh!!! Thanks Holger. 
I had not understood the use of the hash key. I thought it was just a
kind of group name for some excludes.
Now everything is working as expected.

Steve

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/