def scheduled_backup(older_than=6, ignore_files=False, backup_path_db=None, backup_path_files=None, backup_path_private_files=None, force=False):
 odb = new_backup(older_than, ignore_files, backup_path_db=backup_path_db, backup_path_files=backup_path_files, force=force)
 return odb

def scheduled_backup ( older_than = 6 , ignore_files = False , backup_path_db = None , backup_path_files = None , backup_path_private_files = None , force = False ) : odb = new_backup ( older_than , ignore_files , backup_path_db = backup_path_db , backup_path_files = backup_path_files , force = force ) return odb
this function is called from scheduler deletes backups older than 7 days takes backup .