I'm going to use django-dbbackup in my current application. My task is to take backup of my latest sqlite3 database with custom_name.db when 'Backup Database' button is pressed from the UI and to restore a backup from a list of existing backups when 'Restore this backup' is pressed.
In django-dbbackup there are two management commands, dbbackup and dbrestore which are used as
dbbackup [-s <servername>] [-d <database>] [--clean] [--compress] [--encrypt]
and
dbrestore [-d <database>] [-s <servername>] [-f <localfile>]
Now my question is, if I have the original db name original_db.db and I want to backup this db renaming as db_current_data_time.db, what should be the views.py methods?