Error while backing up

Moderator: crythias

Locked
ptay
Znuny newbie
Posts: 85
Joined: 13 Jul 2010, 18:55
Znuny Version: 5.0.10

Error while backing up

Post by ptay »

Hello, on my test box this works fine but on production box I get an error message. The /backup directory group is backup with full rights on both production and test. I also cannot locate the file /var/log/procmail-2011-01.log (even as root).

Code: Select all

[backup@cops-otrs scripts]$ /opt/otrs/scripts/backup.pl -d /backup
Backup /backup/2011-05-26_15-56/Config.tar.gz ... done
Backup /backup/2011-05-26_15-56/Application.tar.gz ... tar: ./var/log/procmail-2011-01.log: Cannot open: Permission denied
tar: Error exit delayed from previous errors
failed
Dump MySQL rdbms ... done
Compress SQL-file... done
[backup@cops-otrs scripts]$
Thanks,
Paul
Test:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error while backing up

Post by jojo »

the file procmail-2011-01.log is in the var/log directory ( e.g. /opt/otrs/var/log/procmail-2011-01.log) and your backup user has no permissions on this file
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ptay
Znuny newbie
Posts: 85
Joined: 13 Jul 2010, 18:55
Znuny Version: 5.0.10

Re: Error while backing up

Post by ptay »

jojo wrote:the file procmail-2011-01.log is in the var/log directory ( e.g. /opt/otrs/var/log/procmail-2011-01.log) and your backup user has no permissions on this file
Thank you jojo, that was it!

Not sure why my test box had 664 permissions & production had 600 on /opt/otrs/var/log/procmail*. My test procmail log ended with 2010-12 and production 2011-01.
Test:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Locked