Discussion:
Zenoss Automatic deleting of aged backups
C LK
2012-02-26 20:41:51 UTC
Permalink
C LK [http://community.zenoss.org/people/imechanics] created the discussion

"Re: Zenoss Automatic delteing of aged backups"

To view the discussion, visit: http://community.zenoss.org/message/64791#64791

--------------------------------------------------------------
Question updated
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64791#64791]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-02-27 01:15:15 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss Automatic delteing of aged backups"

To view the discussion, visit: http://community.zenoss.org/message/64792#64792

--------------------------------------------------------------
Not sure if its different on OS X or not, but cron can be picking about trailing newlines. Can you add a blank line or two to the end of the file? Alternatively try reversing the entries so that the cleanup is listed first. If you reverse it and then the backup doesn't run it could be the newline nonsense.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64792#64792]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
nilie
2012-02-27 04:31:55 UTC
Permalink
nilie [http://community.zenoss.org/people/nilie] created the discussion

"Re: Zenoss Automatic deleting of aged backups"

To view the discussion, visit: http://community.zenoss.org/message/64778#64778

--------------------------------------------------------------
If you run the second script in zenoss user crontab you should not have root in the command line. Only scripts installed in the global crontab file need to specify the actual user accound since the system can't establish the access rights properly.

Try to install both scripts in zeoss crontab as follows :

00 0-23 * * 1  /usr/local/zenoss/zenoss/bin/zenbackup --save-mysql-access
50  19   * * 1  /usr/bin/find /usr/local/zenoss/zenoss/backups -mtime +10 -type f -exec rm \{\} \;
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64778#64778]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...