1. Go to this page and download the library: Download se7enxweb/git_manager 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/ */
se7enxweb / git_manager example snippets
ini
[BackupFreshnessSettings]
WarnAfterDays=7
StaleAfterDays=30
FutureToleranceMinutes=5
bash
# Full site backup (DB + var + site files)
php extension/git_manager/bin/php/backup-create.php fullsite -d "Before upgrade"
# DB + files
php extension/git_manager/bin/php/backup-create.php full -d "Daily backup"
# Database only
php extension/git_manager/bin/php/backup-create.php db
# Files only
php extension/git_manager/bin/php/backup-create.php var
# With encryption
php extension/git_manager/bin/php/backup-create.php full -e -p "yourPassphrase" -d "Encrypted"
bash
30 3 * * * cd /path/to/exponential && php extension/git_manager/bin/php/backup-create.php db -d "Nightly" >> var/log/git_manager_backup.log 2>&1