@manager.option('-a', '--accounts', dest='accounts', type=unicode, default=u'all')
@manager.option('-m', '--monitors', dest='monitors', type=unicode, default=u'all')
@manager.option('-o', '--outputfolder', dest='outputfolder', type=unicode, default=u'backups')
def backup_config_to_json(accounts, monitors, outputfolder):
 monitor_names = _parse_tech_names(monitors)
 account_names = _parse_accounts(accounts)
 sm_backup_config_to_json(account_names, monitor_names, outputfolder)

@ manager . option ( '-a' , '--accounts' , dest = 'accounts' , type = unicode , default = u'all' ) @ manager . option ( '-m' , '--monitors' , dest = 'monitors' , type = unicode , default = u'all' ) @ manager . option ( '-o' , '--outputfolder' , dest = 'outputfolder' , type = unicode , default = u'backups' ) def backup_config_to_json ( accounts , monitors , outputfolder ) : monitor_names = _parse_tech_names ( monitors ) account_names = _parse_accounts ( accounts ) sm_backup_config_to_json ( account_names , monitor_names , outputfolder )
saves the most current item revisions to a json file .