Don't have backups

I have number of backups - 3. I run bench enable-scheduler but I don’t have any backups.

I think they normally only run once per day and at night.

If you prefer to have more control over your backups, you can also setup a cron task and use the ‘mysqldump’ command to run the backup from your own script outside of the ERPNext functions.

You can see examples of it in the scripts I have posted in another thread dedicated to a complete backup system. Even if you don’t want to use all of the information there, you will at least find many useful commands that may help you. See here:

BKM

Hi, thank you very much for your answer and help
Your tutorial is amazing, it’s great job, thank you)

But, unfortunately, on my side it didn’t run once per day and at night((

I still doesn’t have backups any ideas?

Did you check that crontab for the backups is installed?

with the user that run ERPNext:
crontab -e

Than check or add this in one line only (this backups all sites every six hours):
0 */6 * * * cd /home/your_user/your_bench_folder && /bin/bench --site all backup >> /home/your_user/your_bench_folder/logs/backup.log 2>&1

If you don’t know how Cron it works and you want to set up a different time schedule you can use this generator that helps you to understand the scheduling process in Cron:

https://crontab-generator.org/

thank you very very much :sunny:
yes it wasn’t installed, thank you I’ll read