savants/auto-backup

自动数据库备份

dev-main 2021-10-06 09:08 UTC

This package is auto-updated.

Last update: 2024-09-06 15:17:42 UTC


README

自动数据库备份

安装

设置

  • 要安装此包

composer require savants/auto-backup

  • 之后,将以下内容添加到您的 app/Command/Kernel.php
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('db:backup')->daily()->at('23:40'); // set your type of backup time and date
    }
  • 添加以下内容到您的 env
DUMP_PATH=        // path to your mysqldump

许可证

License