Forked from ray-odoo/Disable mail and cron's when restoring a backup of a production database
Created
June 15, 2023 20:56
-
-
Save jeanpaul-mupagasi/2617a698b81b3fe97d45aa0a14a75e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TURN OFF: | |
update ir_mail_server set active = 'f'; | |
update fetchmail_server set active = 'f'; | |
update ir_cron set active = 'f' where function = 'schedule_backup'; | |
TURN ON: | |
update ir_mail_server set active = 't'; | |
update fetchmail_server set active = 't'; | |
update ir_cron set active = 't' where function = 'schedule_backup'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment