PHP code example of svsoft / yii2-backup
1. Go to this page and download the library: Download svsoft/yii2-backup library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
svsoft / yii2-backup example snippets
'modules'=>[
'backup' => [
'class'=>'svsoft\yii\backup\BackupModule',
'backupsFolder' => '@common/backups', // Directory for backups
// Directories that will be added to backup
'directories' => [
'uploads' => '@frontend/upload/files',
],
'accessToken' => 'XU7iKofYILl0wi2muBxs1EOg25STXG', // tokek for access from url. if not set accces deny
],
],