PHP code example of sylvainjule / backups

1. Go to this page and download the library: Download sylvainjule/backups 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/ */

    

sylvainjule / backups example snippets


// site/config.php
return [
    'sylvainjule.backups.prefix' => 'backup-',
];

// site/config.php
return [
    // backups will be copied in assets/my-secretly-public-backups
    'sylvainjule.backups.publicFolder' => 'my-secretly-public-backups',
];

// site/config.php
return [
    'sylvainjule.backups.maximum' => 5,
];