Administration
Services
Run command to enable oc service.
root@shell> ln -s /opt/scripts/oc_service.sh /usr/bin/oc
Available services:
oc rebuild_frontend
oc start_frontend
oc stop_frontend
oc restart_frontend
oc check_frontend
oc refresh_db
oc rebuild_backend
oc start_backend
oc stop_backend
oc restart_backend
oc check_backend
oc backup
oc restore
Check health
Add this to you crontab.
Backup
Execute this command to create a backup.
root@shell> oc backup -d /var/backup -u username -p password -name backupfile
Restore
Execute this command to restore from a backup.
root@shell> oc restore -d /var/backup -u username -p password -name backupfile