Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReaR source based Installation and RPM based Installation has inconsistency #3106

Closed
ramzcode opened this issue Dec 12, 2023 · 2 comments
Closed
Labels
fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question

Comments

@ramzcode
Copy link

ReaR version 2.7.

RPM Source:https://download.opensuse.org/repositories/Archiving:/Backup:/Rear/RHEL_7/x86_64/

Build: From Github

Both types has different behavior's of execution and errors.
Ex:
Build from source code has an error
ERROR: Syntax error: Variable FULLBACKUPDAY not assigned as Bash array in /etc/rear/local_i.conf:
FULLBACKUPDAY=date +%a

But the same works in a RPM based installation.

Is this behavior expected ??

@jsmeix jsmeix added support / question fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. labels Dec 12, 2023
@jsmeix
Copy link
Member

jsmeix commented Dec 12, 2023

See default.conf how to specify FULLBACKUPDAY
and see init/default/001_verify_config_arrays.sh
https://github.com/rear/rear/blob/master/usr/share/rear/init/default/001_verify_config_arrays.sh
therein the listed issues why that check is there.

We neither have a /etc/rear/local_i.conf file
in our GitHub sources, cf.
https://github.com/rear/rear/tree/master/etc/rear
nor do we specify FULLBACKUPDAY in our
https://github.com/rear/rear/blob/master/etc/rear/local.conf

@jsmeix jsmeix closed this as completed Dec 12, 2023
@ramzcode
Copy link
Author

ramzcode commented Dec 12, 2023

@jsmeix The prob is we need to use FULLBACKUPDAY=(date +%a) for the built from source and just FULLBACKUPDAY=date +%a for the RPM deployment. Why is that ?

Does the default files has one and another don't have the array ?
And this the default behavior. Ignore the conf file, it is a custom file that we created along with local.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question
Projects
None yet
Development

No branches or pull requests

2 participants