PHP code example of srdante / laravel-singlestore-backup
1. Go to this page and download the library: Download srdante/laravel-singlestore-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/ */
srdante / laravel-singlestore-backup example snippets
use Miguilim\LaravelSinglestoreBackup\SinglestoreBackup;
$backupInstance = new SinglestoreBackup(
driver: 'local',
database: 'mydatabase',
path: '/my-backup/path'
);
$result = $backupInstance->executeQuery();
sh
php artisan singlestore:backup
sh
php artisan singlestore:backup --timeout=30000
sh
php artisan singlestore:backup --init
sh
php artisan singlestore:backup --differential
sh
php artisan vendor:publish --tag=singlestore-backup-config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.