Example #1
0
    def action_backup_database(self):
        try:
            backup_database()
        except Exception as e:
            return False, str(e)

        return True, "Backup finished"
Example #2
0
    def action_backup_database(self):
        try:
            backup_database()
        except Exception as e:
            return False, str(e)

        return True, "Backup finished"
Example #3
0
 def cmd_backup_database(self, options, *args):
     """Backup the Stoq database"""
     setup_stoq()
     setup_logging()
     return backup_database(full=options.full)
Example #4
0
 def cmd_backup_database(self, options, *args):
     """Backup the Stoq database"""
     setup_stoq()
     setup_logging()
     return backup_database(full=options.full)