Similar to e.g.:
$civicrm_setting['Directory Preferences']['extensionsDir'] = '/Applications/MAMP/htdocs/Louise/git-7/sites/semper-it.local/civicrm/extensions';
Can I do something that sets all scheduled jobs to => disabled?
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
There's a new feature in the latest 4.7 that allows you to configure your site as non-production, which should do a bunch of things like this.
If you're using an older version of CiviCRM, you can manually disable all the jobs with this sql:
UPDATE civicrm_job SET is_active = 0;
But you'd want to make sure (manually) that some don't get auto-enabled (e.g. via the managed record feature in an extension).
Ultimately, the safest way to run a non-production site is in some kind of container that doesn't allow outgoing requests/emails.