SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
[2.0.0beta0] X_option of smbclient contains r flag
Author Message
Post [2.0.0beta0] X_option of smbclient contains r flag 
Hello,

I've got troubles on excluding files/dir. while backuping a network
share with samba (use of smbclient).

After some tests, I found that tar options of smbclient does not work
for me:(

For instance the following command backups my machine, but exclusions
(/I386, /RECYCLER, /Program\ Files) are not take into consideration
(these exlcusions are backuped anyway):

smbclient \\\\grog\\c\$ -U backup_user -E -N -d 1 -c tarmode\ full
-TcrX - /I386 /RECYCLER /Program\ Files

This is the option "-TcrX" that does not work, especially the "r" flag.

No one has the same troubles with it ?

I think my software platform (solaris 7, packages from the NetBSD
package system) can be the cause of that trouble. Samba version is 2.2.5.

Does people with other software environnment (Linux, *BSD) have the same
problems ?


For information:

- the smbclient man page indicates that this flag "r" is required only
for "extended" regular expressions for inclusions/exclusions, and is
not required for basic ones, the ones that contain "*" or "?" as wildcards.

- According to comments of the (main) config.pl file, nothing about
"extended" regex in inclusions/exclusion expression(s), just talking
about "*" and "?"

So,the $X_option should contain (basically) only "X" instead of "rX" (in
file backupPC/lib/BackupPC/Xfer/Smb.pm), and config.pl should offer the
possibility to add the "r" flag if needed ?

Or perhaps the comments about include/exclude files/dirs in config.pl
should be updated.

Regards,

Pierre Bourgin

ps: the solution for me is to redefine the values of
$Conf{SmbClientFullCmd} and $Conf{SmbClientIncrCmd} in config.pl



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post [2.0.0beta0] X_option of smbclient contains r flag 
Hello again,

there is a (working) solution pointed by someone who sent me directly this :

I had the same problem but all I did was modify the syntax. Try:

$Conf{BackupFilesExclude} = ['\I386', '\RECYCLER', '\Program Files'];

- Wade

Regards,

Pierre Bourgin

pierre bourgin wrote:
Hello,

I've got troubles on excluding files/dir. while backuping a network
share with samba (use of smbclient).

After some tests, I found that tar options of smbclient does not work
for me:(

For instance the following command backups my machine, but exclusions
(/I386, /RECYCLER, /Program\ Files) are not take into consideration
(these exlcusions are backuped anyway):

smbclient \\\\grog\\c\$ -U backup_user -E -N -d 1 -c tarmode\ full
-TcrX - /I386 /RECYCLER /Program\ Files

This is the option "-TcrX" that does not work, especially the "r" flag.

No one has the same troubles with it ?

I think my software platform (solaris 7, packages from the NetBSD
package system) can be the cause of that trouble. Samba version is 2.2.5.

Does people with other software environnment (Linux, *BSD) have the same
problems ?


For information:

- the smbclient man page indicates that this flag "r" is required only
for "extended" regular expressions for inclusions/exclusions, and is
not required for basic ones, the ones that contain "*" or "?" as wildcards.

- According to comments of the (main) config.pl file, nothing about
"extended" regex in inclusions/exclusion expression(s), just talking
about "*" and "?"

So,the $X_option should contain (basically) only "X" instead of "rX" (in
file backupPC/lib/BackupPC/Xfer/Smb.pm), and config.pl should offer the
possibility to add the "r" flag if needed ?

Or perhaps the comments about include/exclude files/dirs in config.pl
should be updated.

Regards,

Pierre Bourgin

ps: the solution for me is to redefine the values of
$Conf{SmbClientFullCmd} and $Conf{SmbClientIncrCmd} in config.pl



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post [2.0.0beta0] X_option of smbclient contains r flag 
For instance the following command backups my machine, but exclusions
(/I386, /RECYCLER, /Program\ Files) are not take into consideration
(these exlcusions are backuped anyway):

smbclient \\\\grog\\c\$ -U backup_user -E -N -d 1 -c tarmode\ full
-TcrX - /I386 /RECYCLER /Program\ Files

This is the option "-TcrX" that does not work, especially the "r" flag.

Smbclient only handles a single exclude file when the "r" flag is
specified. I've attached a patch for smbclient developed by Chris
Ernst that allows the "r" flag to handle multiple exclude files.

As you determined, if you don't use regex in the exclude file then
you can remove the "r" flag from $Conf{SmbClientFullCmd} and
$Conf{SmbClientIncrCmd} and smbclient will handle multiple exclude
files.

Craig

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB