OpenCATS 0.9.4-3

Free, Open-Source Applicant Tracking System including job-board. Entirely customisable!

General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
By Ilovecats
Thanks and I will try this tonight.

I've always just backed up the OpenCATS directory manually. What is Backingup your MySQL/MariaDB database doing ?
User avatar
By cptr13
The database is all of the actual information.

The directories are the program and resumes.

You need both for a successful restore.

The gui (full) backup, backs up both.
User avatar
By cptr13
Ok. I THINK...this will encompass a fully automated backup in Windows. I will write this up and simplify this in the documentation at some point. For now, these are the instructions to do it.
1) Backup the OpenCATS MySQL database ... n-windows/

2) Backup the OpenCATS Directories: ... ows-7.html

I would recommend, setting the database backup to run first. Then running the step 2 backup to include the OpenCATS directories AND the mysql backup file from step 1.

This should give you a full backup, automatically run and placed on an external hard drive.

WARNING: You must, must must must to a test restore to make sure everything is working. I would recommend doing an occasional test restore on an ongoing basis. You don't want to be caught with a bad backup when you need it....
User avatar
By kevinharper
I need a solution for a non-technical client that automates the backup process on Unix (Dreamhost). Since OpenCATS already has a full backup feature, it seems like it would be easy to create a script that:

1) Creates a full backup of OpenCATS on a schedule I can determine. Preferably hourly for 24 hours, then daily for a month.
2) Timestamps the zip file for future download.
3) Emails a copy of the zip file if desired, or uploads to Dropbox, FTP, etc.

Has someone created something like this already, or would someone be interested in doing so? Please PM me.

My idea would be to write a bash script then put it on a cron job. I'm not a trained coder, but could probably hack my way through some of this, but if someone has already done it, or can offer pointers, your assistance will be appreciated. :-)
User avatar
By cptr13
I'm not aware of anything like this. If you put something together please share it. There's a lot of folks using shared-hosting. I'm sure it could be tweaked and used.
User avatar
By kevinharper
Here is what I have so far. I put this on a cron that runs every other hour during business hours M-F. The script generates a Gzip MySQL backup and a Zip full file backup. It then checks and removes any backups older than 7 days.

I added this to GitHub in case others want to improve it.
Code: Select all
# OpenCATS Autobackup v0.0
# By Kevin Harper
# This script creates a MySQL backup and Gzips it, creates a full file backup
# and zips it, then deletes backups older than 7 days. Place it on a cron and
# schedule to your preferences.
# Set MySQL credentials
THEDATE=`date +%d%m%y%H%M`
# Set other variables
# Make MySQL backup
mysqldump -h $THEHOST -u $THEDBUSER -p${THEDBPW} $THEDB | gzip > ${THEBACKUPPATH}${THESITE}_mysql_${THEDATE}.gz
# Make file backup
# Remove backups older than 7 days
find ${THEBACKUPPATH}${THESITE}* -mtime +7 -exec rm {} \;
User avatar
By kevinharper
@cptr13 True, but this install is on a shared server environment. Dreamhost. So far, the script I posted for automating this is working beautifully. I'd like it to be a little more elegant for non-technical users to download and restore from a backup, but I at least have peace of mind. :)
CPL-consistent "debranding"

I'm confident by using my webhosts that my subvers[…]

Also, at the top I see this error: Warning: inclu[…]

I've written a custom PHP code which is actually a[…]

It would be nice for CATSone to also allow the aut[…]

Hi there! I would like to implement a search box […]

OpenCATS restore

Yes I think so. I assume you made a backup of al y[…]

Is this a fresh install of 0.9.4-3 and you importe[…]

How to enable and use ACL

I started to enable the ACL about 2 years ago (May[…]

If you use centos 7,everything should be the same.[…]