Opened 15 years ago

Closed 15 years ago

#330 closed defect (worksforme)

Mondoarchive partially ignores -E option.

Reported by: David Lopez Owned by: Bruno Cornec
Priority: high Milestone: 2.2.9
Component: mondo Version: 2.2.7
Severity: critical Keywords: mondoarchive ignores -E
Cc: mondo@…

Description (last modified by Bruno Cornec)

Hi there guys!

We have been testing Mondorescue for a while and, in some of our tests, "mondoarchive" tools is partially ignoring -E switch. It correctly excludes some of the folders but some of them are included in the mondo backup.

In the following excerpt of the /var/log/mondoarchive.log, It can be seen that "/var/opt/bea92" folder shoud be excluded from the backup:

----

		[Main] libmondo-cli.c->handle_incoming_parameters#266: Switches:-
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -E  /var/opt/apache /var/opt/apache/data /var/logs/apachelogs /opt/bea92
/var/opt/bea92
/var/opt/bea92/logs
/var/opt/bea92_ia32 /var/opt/bea92
/var/opt/bea92_ia32 /var/opt/bea92/logs /opt/bea92_ia32
/var/opt/bea92_ia32/logs /var/opt/bea92_ia32 /var/opt/bea92_ia32/logs
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -I /boot / /home /opt /usr /usr/local /var
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -N 
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -O 
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -d backedUpServer.kilo.rana.com
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -n NFS_Server.kilo.rana.com:/vol/VNFS010/ignite_archive/MONDO
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -p 200903062105.backedUpServer.mondoImage
		[Main] libmondo-cli.c->handle_incoming_parameters#270: -s 4480m
[Main] libmondo-tools.c->post_param_configuration#458: Foo
	[Main] libmondo-files.c->store_nfs_config#1240: Storing NFS configuration
	[Main] libmondo-files.c->store_nfs_config#1317: Finished storing NFS configuration
	[Main] libmondo-tools.c->post_param_configuration#744: Finished processing incoming params

----

but if we look at the list of files included in the backup we can see that the whole set of files hanging under /var/opt/bea92 are included in the backup (here is included an excerpt of the list):

----
/var/opt/bea92/domains/rapid/servers/san01_rapid/tmp/_WL_user/webtop_@5.3.0.508/drm0ge/war/wdk/theme/windowsxpsilver/images/statusbar/bg.gif
/var/opt/bea92/domains/rapid/servers/san01_rapid/tmp/_WL_user/webtop_@5.3.0.508/drm0ge/war/wdk/theme/windowsxpsilver/images/statusbar/left.gif
/var/opt/bea92/domains/rapid/servers/san01_rapid/tmp/_WL_user/webtop_@5.3.0.508/drm0ge/war/wdk/theme/windowsxpsilver/images/statusbar/right.gif
/var/opt/bea92/domains/rapid/servers/san01_rapid/tmp/_WL_user/webtop_@5.3.0.508/drm0ge/war/wdk/theme/windowsxpsilver/images/statusbar/statusBarBg.gif
----

Could you please help me with this issue?

do not hesitate to contact me if you need any further information.

Best Regards lopezd7.

Attachments (4)

200903062105.backedUpServer.mondoarchive.log (554.4 KB ) - added by David Lopez 15 years ago.
Complete log of mondoarchive execution
xaa_filelist.full.gz (1.3 MB ) - added by David Lopez 15 years ago.
First half of filelist.full.gz file
xab_filelist.full.gz (1.3 MB ) - added by David Lopez 15 years ago.
Second half of filelist.full.gz file
mondoarchive.log (335.2 KB ) - added by Malcolm Gillies 15 years ago.

Change History (12)

by David Lopez, 15 years ago

Complete log of mondoarchive execution

by David Lopez, 15 years ago

Attachment: xaa_filelist.full.gz added

First half of filelist.full.gz file

by David Lopez, 15 years ago

Attachment: xab_filelist.full.gz added

Second half of filelist.full.gz file

comment:1 by Bruno Cornec, 15 years ago

Could you retry with 2.2.8 + mindi 2.0.6 as some stuff around includes/excludes have change since.

In your log I find:

[Main] libmondo-cli.c->process_switches#1228: WARNING ! /opt/bea92
/var/opt/bea92
/var/opt/bea92/logs
/var/opt/bea92_ia32 doesn't exist
[Main] libmondo-cli.c->process_switches#1228: WARNING ! /var/opt/bea92
/var/opt/bea92_ia32 doesn't exist
[Main] libmondo-cli.c->process_switches#1228: WARNING ! /opt/bea92_ia32
/var/opt/bea92_ia32/logs doesn't exist

Also I'm not sure that using -I /var doesn't cause the issue you're seeing.

in reply to:  1 ; comment:2 by Malcolm Gillies, 15 years ago

Replying to bruno:

Could you retry with 2.2.8 + mindi 2.0.6 as some stuff around includes/excludes have change since.

I think I'm seeing the same problem. This was initially with mindi 2.0.4 and mondo 2.2.7 (from Debian sid); however I've now tried 2.2.8/2.0.6 directly from mondorescue.org and the behaviour looks the same.

I'm guessing the problem may be with files I'm explicitly excluding that appear on the biggielist. Here's my command line:

mondoarchive -OU -9 -d /dev/sda -g -s 7630m -S /var/tmp -T /var/tmp -E '/home/malcolm/hda.vdi [45 items omitted]'

# cat /var/tmp/mondo.scratch.17201/mondo.scratch.7635/archives/biggielist.txt

/home/malcolm/hda.vdi [...]

by Malcolm Gillies, 15 years ago

Attachment: mondoarchive.log added

comment:3 by Malcolm Gillies, 15 years ago

Cc: mondo@… added

in reply to:  2 comment:4 by Bruno Cornec, 15 years ago

Replying to mbg:

I'm guessing the problem may be with files I'm explicitly excluding that appear on the biggielist. Here's my command line:

mondoarchive -OU -9 -d /dev/sda -g -s 7630m -S /var/tmp -T /var/tmp -E '/home/malcolm/hda.vdi [45 items omitted]'

Files are *not* supported in option -E. Only dirs. (Cf man page)

in reply to:  1 comment:5 by Bruno Cornec, 15 years ago

Replying to bruno:

Also I'm not sure that using -I /var doesn't cause the issue you're seeing.

Have you tried without the -I to see if that would change the way mondo deal wiwith your excludes ?

comment:6 by Bruno Cornec, 15 years ago

Description: modified (diff)

comment:7 by Bruno Cornec, 15 years ago

Milestone: 2.2.92.2.10

comment:8 by Bruno Cornec, 15 years ago

Milestone: 2.2.102.2.9
Resolution: worksforme
Status: newclosed

Man page more clear on combined usage of -I and -E which is the root of the original problem here.

Note: See TracTickets for help on using tickets.