How to reinstall a lost automated jobs?

Permalink 2 users found helpful
Hi All,

I was delete an automated job "Remove Old Page Versions" by accident, and i want to reinstall it. Does someone know how to? Thanks for any help.

Regards,
Takuro

hissy
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
the only way to get it back is to manually insert it back into the database.

The handle is: remove_old_page_versions

Mike
ConcreteOwl replied on at Permalink Reply 1 Attachment
ConcreteOwl
I had to install it back into one of my databases recently,
The table to look in is called "Jobs"
I have attached an image showing the standard data required and I would also recommend changing the JNotUninstallable value to "1" this will remove the option to "Remove" from the Jobs list.
hissy replied on at Permalink Reply
hissy
Thanks weyboat, I think it's a nice idea of you that set JNotUninstallable true. I'll do it.
hissy replied on at Permalink Reply
hissy
Thanks Mike, I run insert sql query, and the job had return!

INSERT INTO `Jobs` VALUES(4, 'Remove Old Page Versions', 'Removes all except the 10 most recent page versions for each page.', now(), NULL, 0, NULL, 0, 'ENABLED', 'remove_old_page_versions', 0);
vernb replied on at Permalink Reply
vernb
Thanks Hissy

This was just what I needed!
Vern
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
I created an add-on a while back to make this easy.

http://www.concrete5.org/marketplace/addons/restore-automated-jobs/...
Deladroid replied on at Permalink Reply
Deladroid
The add-on is great! Thanks.
diemae replied on at Permalink Reply
Hi, is there a solution for version 5.7.5.9 as well?
I accidentally removed the Process Mail job and am now unable to get it back.

Any suggestions would be greatly appreciated.