0

I have developed a web application in Python and Django and need to back up the data daily. Currently, Postgres is used as DBMS.

To perform the backup I discovered the django-dbbackup module, but to use it, I need to run the command python manage.py dbbackup.

How do I automatically back up every day at a certain time?

Rafael
  • 197
  • 11

1 Answers1

0

If you are on Linux set up a cron job by following this example: Running a cron job at 2:30 AM everyday

On Windows is similar setup a schedule task using their wizard.

The command you’ll want to use is

python manage.py dbbackup
Daniel Butler
  • 3,239
  • 2
  • 24
  • 37