Opened 10 years ago

Closed 10 years ago

#330 closed defect (worksforme)

Mondoarchive partially ignores -E option.

Reported by: lopezd7 Owned by: bruno
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)

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 lopezd7 10 years ago.
Complete log of mondoarchive execution
xaa_filelist.full.gz (1.3 MB) - added by lopezd7 10 years ago.
First half of filelist.full.gz file
xab_filelist.full.gz (1.3 MB) - added by lopezd7 10 years ago.
Second half of filelist.full.gz file
mondoarchive.log (335.2 KB) - added by mbg 10 years ago.

Change History (12)

Changed 10 years ago by lopezd7

Complete log of mondoarchive execution

Changed 10 years ago by lopezd7

First half of filelist.full.gz file

Changed 10 years ago by lopezd7

Second half of filelist.full.gz file

comment:1 follow-ups: Changed 10 years ago by bruno

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.

comment:2 in reply to: ↑ 1 ; follow-up: Changed 10 years ago by mbg

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 [...]

Changed 10 years ago by mbg

comment:3 Changed 10 years ago by mbg

  • Cc mondo@… added

comment:4 in reply to: ↑ 2 Changed 10 years ago by bruno

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)

comment:5 in reply to: ↑ 1 Changed 10 years ago by bruno

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 Changed 10 years ago by bruno

  • Description modified (diff)

comment:7 Changed 10 years ago by bruno

  • Milestone changed from 2.2.9 to 2.2.10

comment:8 Changed 10 years ago by bruno

  • Milestone changed from 2.2.10 to 2.2.9
  • Resolution set to worksforme
  • Status changed from new to closed

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.