Comments (7)
Using:
$comm .= "rX";
Change the behavior of amsamba, i would prefer if you add a new property, eg 'use-regex' and add the 'r' only when use-regex is set.
For:
return if $line =~ $line =~ /Server not using user level security and no password supplied./;
The bug is the double ' $line =', can you try with: /Server not using user level security and no password supplied./;
return if $line =
from amanda.
martineau, i'm not a developer and the double "$line =" drove me nuts trying to understand WHY?", i will try and update.
But i guess that it still need the "m/\Q$line\E/ =
About the "$comm .= "rX";" where a simple resolution for a problem that i saw a lot of people reported (exclude does not works).
from amanda.
martineau, u were right about the the double "$line =~".
from amanda.
About the line:
$_ =~ s/([0-7]+)/chr oct $1/eg;
I do not like to match any number of digit, is it always 3 digits? or anything between 1 and 3?
We could use:
$_ =~ s/([0-7]{3})/chr oct $1/eg;
or:
$_ =~ s/([0-7]{1,3})/chr oct $1/eg;
from amanda.
martineau,
I agree about it must to be 3 digits:
$_ =~ s/([0-7]{3})/chr oct $1/eg;
from amanda.
I committed a fix
The smbclient man page say that 'r' can be very slow. it is enabled only with a property.
I added a 'regex-match' property, the 'r' mode is enabled only if the property is set to "YES".
I have no setup to try amsamba, can you try the committed patch?
from amanda.
Using this SAMBA mod https://bitbucket.org/knarf/samba/get/gsoc_clitar_libarchive.tar.bz2 exclude will work.
You will need http://www.4shared.com/folder/6mEYgOcb/libarchive_3_for_rhel6.html to compile it in RHEL6 or Centos 6.
More info: http://diobla.info/doc/gsoc13/journal
I tested with amanda 3.3.5 and RHEL6 and had to change only this in amanda:
--- /usr/libexec/amanda/application/amsamba.original 2014-02-14 13:17:26.422232351 -0200
+++ /usr/libexec/amanda/application/amsamba 2014-02-14 13:55:57.470228421 -0200
@@ -744,6 +744,7 @@
debug("stderr: " . $line);
return if $line =~ /^Domain=/;
return if $line =~ /^tarmode is now /;
+ return if $line =~ /^tar:[0-9 ]*tarmode is now /;
return if $line =~ /^tar_re_search set/;
if ($line =~ /dumped (\d+) files and directories/) {
$nb_files = $1;
@@ -751,7 +752,7 @@
}
# message if samba server is configured with 'security = share'
return if $line =~ /Server not using user level security and no password supplied./;
- if ($line =~ /^Total bytes written: (\d*)/) {
+ if ($line =~ /^Total bytes written: (\d*)|^tar:[0-9 ]*Total bytes received: (\d*)/) {
$size = $1;
return;
}
@@ -829,6 +830,7 @@
my($size) = -1;
while(<$fhin>) {
next if /^Total bytes written:/;
+ next if /^tar:[0-9 ]*Total bytes received:/;
next if !/^\.\//;
s/^\.//;
print $fhout $_;
from amanda.
Related Issues (20)
- debian 11 package issues HOT 4
- Matriz
- Wiki: Page-Improvement (Sendbackup_error)
- Compile 3.5.3 with latest version
- /dev/nst0 assumed to be drive 0 in changer HOT 2
- segfault in planner: NULL dp->program pointer, after removing disklistentry
- About Amanda's specifications HOT 1
- tapechange/tapetype Definitions
- Wiki Page Request: document high port usage HOT 3
- Maximum DLEs HOT 5
- Is there a procedure documented to recover an amanda backup server from scratch if I have all my backup tapes? HOT 1
- Not high enough throughput when using 10 GbE and AMANDA 3.5.1 HOT 1
- Support to install on Rocky Linux 9 HOT 5
- Web Based Centralized Management Console (suggestion) HOT 2
- 3.5.4 -- ndmp-src/ndmprotocol.h calls nonexistant ndmp0.h HOT 4
- Recommended Way to Report a Potential Security Issue HOT 2
- Only the first backup in disklist is made HOT 4
- autoconf error on debian
- Amanda estimating incrementals but dumping full backups HOT 12
- SignatureDoesNotMatch Error While Uploading to Amazon S3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amanda.