BackupPC-users

[BackupPC-users] Stop building file list if file opened with rsyncd

2013-10-10 09:24:34
Subject: [BackupPC-users] Stop building file list if file opened with rsyncd
From: Philippe MALADJIAN <pmaladjian AT hilaire DOT fr>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 10 Oct 2013 11:40:57 +0200
Hello,

For advance excuse me for my very bad english.

I'm configuring backuppc with rsyncd for one host (linux redhat 5.5 with rsync 3.0.6 version protocol 30).

$Conf{RsyncShareName} = [                                                                                                                                    
  'home'
];
$Conf{RsyncdAuthRequired} = '0';
$Conf{XferMethod} = 'rsyncd';
$Conf{XferLogLevel} = '9';
$Conf{DumpPreUserCmd} = undef;
$Conf{RsyncArgs} = [ 
  '--numeric-ids',
  '--perms',
  '--owner',
  '--group',
  '-D',
  '--links',
  '--hard-links',
  '--times',
  '--block-size=2048',
  '--recursive',
  '--compress'
];
$Conf{BackupsDisable} = '0';

With this config the building file list stay blocked.
On host
# ps faux
root      3202  0.0  0.0  65584   456 ?        Ss   Oct09   0:00 /usr/bin/rsync --daemon
root      7067  0.0  0.0  68868  3388 ?        S    10:52   0:00  \_ /usr/bin/rsync --daemo
The strace log
------------------------------------------------------------
# strace -p 3202
Process 3202 attached - interrupt to quit
select(6, [4 5], NULL, NULL, NULL)      = 1 (in [5])
accept(5, {sa_family=AF_INET, sin_port=htons(48786), sin_addr=inet_addr("192.168.5.32")}, [10573888983702437904]) = 3
rt_sigaction(SIGCHLD, {0x42c660, [], SA_RESTORER|SA_NOCLDSTOP, 0x3dce4302d0}, NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2ba35d3ea3f0) = 7067
close(3)                                = 0
select(6, [4 5], NULL, NULL, NULL
------------------------------------------------------------

------------------------------------------------------------
# strace -p 7067
Process 7067 attached - interrupt to quit
select(4, [3], [], NULL, {56, 672000})  = 1 (in [3], left {48, 396000})
read(3, "\232 \0\0R\t\0\0\0\10\0\0\2\0\0\0|\6\0\0Cc\336! 7\37(\304\211\n\3"..., 8184) = 8184
select(4, [3], [], NULL, {60, 0})       = 1 (in [3], left {60, 0})
read(3, "\316\312\237\24\310\341G\r;\26N\275\254W\376\23\307\335D\373]\24\22\203\274\335\245\24]\364\325\353"..., 8184) = 6156
open("product/10.2.0/db_1/network/log/listener.log", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0640, st_size=4905087, ...}) = 0
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ba360c28000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ba360c69000
read(5, "24-SEP-2012 14:12:45 * ping * 0\n"..., 262144) = 262144
brk(0x27c5000)                          = 0x27c5000
brk(0x27f5000)                          = 0x27f5000
read(5, " * service_update * HILTEST * 0\n"..., 262143) = 262143
read(5, "t currently know of SID given in"..., 260096) = 260096
read(5, "s not currently know of SID give"..., 260096) = 260096
read(5, "ently know of SID given in conne"..., 260096) = 260096
read(5, "currently know of SID given in c"..., 260096) = 260096
read(5, "CT-2012 18:42:34 * service_updat"..., 260096) = 260096
read(5, "07:46:06 * service_update * HILT"..., 260096) = 260096
read(5, "5 * service_update * HILTEST * 0"..., 260096) = 260096
read(5, "8 * service_update * HILTEST * 0"..., 260096) = 260096
read(5, "13 04:25:52 * service_update * H"..., 260096) = 260096
read(5, "2013 22:54:03 * service_update *"..., 260096) = 260096
read(5, "LTEST * 0\n26-MAR-2013 19:16:01 *"..., 260096) = 260096
read(5, "8:30 * service_update * HILTEST "..., 260096) = 260096
read(5, "e_update * HILTEST * 0\n23-MAY-20"..., 260096) = 260096
read(5, "ce_update * HILTEST * 0\n03-JUL-2"..., 260096) = 260096
read(5, "54:08 * service_update * HILTEST"..., 260096) = 260096
read(5, "3 19:48:17 * service_update * HI"..., 260096) = 260096
read(5, "vice_update * HILTEST * 0\n19-SEP"..., 219264) = 219264
munmap(0x2ba360c69000, 266240)          = 0
close(5)                                = 0
select(4, NULL, [3], [3], {60, 0})      = 1 (out [3], left {60, 0})
write(3, "\34\7\0\7", 4)                = 4
select(4, NULL, [3], [3], {60, 0})      = 1 (out [3], left {60, 0})
write(3, "\232 \0\0R\t\0\0\0\10\0\0\2\0\0\0|\6\0\0\300P\tF\362\314\235K\16\3446\f"..., 1820) = 1820
select(4, NULL, [3], [3], {60, 0})      = 1 (out [3], left {60, 0})
write(3, "\4\0\0\7\377\377\377\377", 8) = 8
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
select(4, [3], [], NULL, {60, 0}
....
------------------------------------------------------------


the file listener.log is open and locked by the listener oracle process.
With this config it's ok

$Conf{RsyncShareName} = [                                                                                                                                    
  'home'
];
$Conf{RsyncdAuthRequired} = '0';
$Conf{XferMethod} = 'rsyncd';
$Conf{XferLogLevel} = '9';
$Conf{DumpPreUserCmd} = undef;
$Conf{RsyncArgs} = [ 
  '--numeric-ids',
  '--perms',
  '--owner',
  '--group',
  '-D',
  '--links',
  '--hard-links',
  '--times',
  '--block-size=2048',
  '--recursive',
  '--compress'
];
$Conf{BackupsDisable} = '0';
$Conf{BackupFilesExclude} = { 
  'oracle' => [
    'listener.log'
  ]
};

If 'im configuring to use rsync + ssh i haven't the problem to backup this file.

Attachment: pmaladjian.vcf
Description: Vcard

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>
  • [BackupPC-users] Stop building file list if file opened with rsyncd, Philippe MALADJIAN <=