PHP code example of vortos / vortos-backup
1. Go to this page and download the library: Download vortos/vortos-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/ */
vortos / vortos-backup example snippets
->pgBackRest(stanza: 'main', databaseService: 'write_db', repositoryEnvFile: '/opt/app/pgbackrest.env')
->schedule(fn ($s) => $s
->pgBackRestFull('0 2 * * 0') // weekly full
->pgBackRestDifferential('0 2 * * 1-6') // daily, changed blocks only
->pgBackRestVerify('30 4 * * 0') // re-read the repository against its checksums
->pgBackRestDrill('30 1 * * *')) // restore + replay to the end of the archive