Opened 9 years ago

Closed 8 years ago

#366 closed defect (fixed)

Mondoarchive exclude option not accepting more than "36" folders

Reported by: deepugopi Owned by: bruno
Priority: high Milestone: 2.2.9.5
Component: mondo Version: 2.2.9
Severity: critical Keywords: exclude option
Cc: sysadmin@…

Description

Hello ,

Whenever I try to exclude more than 36 folders [I found out this number after some testing] the Mondoarchive gives FATAL ERROR [ please see the attached mondoarchive.log file].

Mondo Archive command I used: /usr/sbin/mondoarchive -OiV -p cvsfull -I "<absolute_Folder_path_for_backup>" -E " <gave_37_folder_path_with_space_between_each_folder>" -d /BACKUP/FULL_BACKUP/full_backup -s 4400m

Machine Details : OS Used : Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Arch : 64 bit

MondoRescue? version : Mondo : 2.2.6-1 Mindi : 2.0.2-1 Mindi-busybox : 1.7.3-1 Afio : 2.5-2 Buffer : 1.19-2 Syslinux : 3.62-1

Thanking in Advance Deepu Gopinathan

Attachments (4)

mondoarchive.log (7.5 KB) - added by deepugopi 9 years ago.
Mondoarchive log file. Please see line 68 & 69
mondoarchive_2.2.6.log (8.9 KB) - added by deepugopi 9 years ago.
MondoArchive?[2.2.6] log file
mondoarchive_16Nov2009_1.log (9.4 KB) - added by deepugopi 9 years ago.
mondoarchive_16Nov2009_2.log (7.5 KB) - added by deepugopi 9 years ago.

Download all attachments as: .zip

Change History (14)

Changed 9 years ago by deepugopi

Mondoarchive log file. Please see line 68 & 69

comment:1 Changed 9 years ago by deepugopi

  • Cc sysadmin@… added
  • Keywords exclude option added

comment:2 follow-up: Changed 9 years ago by bruno

Could you update to mondo 2.2.9 and mindi 2.0.7 and report back again (ftp://ftp.mondorescue.org/rhel/4)

comment:3 in reply to: ↑ 2 ; follow-up: Changed 9 years ago by deepugopi

Replying to bruno:

Could you update to mondo 2.2.9 and mindi 2.0.7 and report back again (ftp://ftp.mondorescue.org/rhel/4)

Hello ,

Thank you for your update. But problem is still there.

Actually there is a mistake in the Mondo/Mindi? version I mentioned while submitting the ticket.

The Version I used initially is : Mondo:2.2.9-1 Mindi: 2.0.7-1 Mindi-busybox : 1.7.3-1

Also I tried with old version : Mondo: 2.2.6-1 Mindi: 2.0.2-1 Mindi-busybox: 1.7.3-1

Changed 9 years ago by deepugopi

MondoArchive?[2.2.6] log file

comment:4 in reply to: ↑ 3 Changed 9 years ago by deepugopi

Replying to deepugopi:

Replying to bruno:

Could you update to mondo 2.2.9 and mindi 2.0.7 and report back again (ftp://ftp.mondorescue.org/rhel/4)

Hello ,

Thank you for your update. But problem is still there.

Actually there is a mistake in the Mondo/Mindi? version I mentioned while submitting the ticket.

The Version I used initially is : Mondo:2.2.9-1 Mindi: 2.0.7-1 Mindi-busybox : 1.7.3-1

Also I tried with old version : Mondo: 2.2.6-1 Mindi: 2.0.2-1 Mindi-busybox: 1.7.3-1

Hello Bruno ,

Sorry to keep pinging again. But wondering is there any way i can bypass this situation - as back is taking extra 3-4 hours [ around 4-6GB ] because of unwanted data backup.

  • Like using any old version on Mondo [ older than 2.2.6 ]
  • Or Trying out any new beta version

Thanking in Advance Deepu Gopinathan

comment:5 Changed 9 years ago by bruno

  • Milestone set to 2.2.9.1
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 2.2.6 to 2.2.9

The error is:

[Main] libmondo-cli.c->process_switches#774: ERROR ! doesn't exist [Main] newt-specific.c->fatal_error#297: Fatal error received - 'ERROR ! You specified a directory to include which doesn't exist'

Which was your -I option ? (it's the *include* dir which has an issue here). I advise to Remove the -I. In general you never want it.

Changed 9 years ago by deepugopi

comment:6 follow-up: Changed 9 years ago by deepugopi

  • Resolution invalid deleted
  • Status changed from closed to reopened

Hello Bruno ,

Thank You for your feedback. The error is still there But may I point that I've verified the path of the folders which i placed under "include" & "exclude" option & they are fine.

Also I notice that If I inter-change the position of "- I" & "- E" option then I'm getting 2 different errors.

Case 1 : [ -I option is first ] Command : /usr/sbin/mondoarchive -OiV -p cvsfull -I "include_folder_path" -E "exclude_folder_paths" -d /work/BACKUP/mondo -s 2000m Error Message : Fatal error... ERROR ! You specified a directory to include which doesn't exist ---FATALERROR--- ERROR ! You specified a directory to include which doesn't exist Log File : mondoarchive_16Nov2009_2.log

I've included only 1 folder for backup but still its giving error message related to directory included under include option.

Case 2 : [ -E option is first ] Command : /usr/sbin/mondoarchive -OiV -p cvsfull -E "exclude_folder_paths" -I "include_folder_path" -d /work/BACKUP/mondo -s 2000m Error Message : Fatal error... Your '-E' parameter is too long. Increase MAX_STR_LEN ---FATALERROR--- Your '-E' parameter is too long. Increase MAX_STR_LEN Log File : mondoarchive_16Nov2009_1.log

One of the folder path which i mentioned under exclude option is automatically changed [Main] libmondo-cli.c->process_switches#1081: WARNING ! /work/Softwares/WINDOWS/win-softwares/Win/work/Softwares/WINDOW S doesn't exist

Changed 9 years ago by deepugopi

comment:7 in reply to: ↑ 6 Changed 9 years ago by bruno

  • Milestone changed from 2.2.9.1 to 2.2.10

Replying to deepugopi:

Hello Bruno ,

Thank You for your feedback. The error is still there But may I point that I've verified the path of the folders which i placed under "include" & "exclude" option & they are fine.

The second log doesn't say so: dows_Softwares/System/CleanMem is passed to -I but doesn't exist (and is not a full pathname)

Also I notice that If I inter-change the position of "- I" & "- E" option then I'm getting 2 different errors.

Normal, the analysis is done in order.

Case 1 : [ -I option is first ] Command : /usr/sbin/mondoarchive -OiV -p cvsfull -I "include_folder_path" -E "exclude_folder_paths" -d /work/BACKUP/mondo -s 2000m Error Message : Fatal error... ERROR ! You specified a directory to include which doesn't exist ---FATALERROR--- ERROR ! You specified a directory to include which doesn't exist Log File : mondoarchive_16Nov2009_2.log

Yes see upper.

I've included only 1 folder for backup but still its giving error message related to directory included under include option.

What is your CLI for that ?

Case 2 : [ -E option is first ] Command : /usr/sbin/mondoarchive -OiV -p cvsfull -E "exclude_folder_paths" -I "include_folder_path" -d /work/BACKUP/mondo -s 2000m Error Message : Fatal error... Your '-E' parameter is too long. Increase MAX_STR_LEN

Yes, you should either refactor your exclude line or recomile by increasing MAX_STR_LEN as there is a limit.

However, you shouldn't probably use both -I and -E. Read the mane page for that.

comment:8 Changed 9 years ago by deepugopi

Could you please tell me how to increase the MAX_STR_LEN limit . My machine is RHEL 4.2 [64 bit].

Also as per my current backup scenario I only need to backup 8-9 folders but at the same time I need to exclude some sub-folder under those included folders . This is the reason why is use both -I & -E option at the same time.

comment:9 Changed 9 years ago by bruno

You need to edit include/my-stuff.h and modify its value to something higher than 384.

This problem is now solved in 2.2.10 with dynamic allocation. However, I still need to adapt some structure s to have it fully supported everywhere.

comment:10 Changed 8 years ago by bruno

  • Milestone changed from 2.2.10 to 2.2.9.5
  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed as of rev [2709] in 2.2.9.5, backporting dynamic allocation for exclude list from 2.2.10

Note: See TracTickets for help on using tickets.