This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
TIMESTAMP=$(date +"%F-%T") | |
BACKUP_DIR="/var/backups/databases/my_website_backups/$TIMESTAMP" | |
MYSQL_USER="root" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD="password" | |
MYSQL_HOST="localhost" | |
REMOTE_HOST="192.168.1.55" | |
REMOTE_USER="backup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
TIMESTAMP=$(date +"%F-%T") | |
FILES_DIR=/var/www/my_website/web/uploads | |
BACKUP_DIR="/var/backups/files/my_website_backups/$TIMESTAMP" | |
TAR=/usr/bin/tar | |
REMOTE_HOST="192.168.1.55" | |
REMOTE_USER="backup" | |
REMOTE_PASSWORD="password" | |
REMOTE_DIR=/home/backup/files_backups/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
TIMESTAMP=$(date +"%F-%T") | |
FILES_DIR=/var/www/my_website/web/uploads | |
BACKUP_DIR="/var/backups/files/my_website_backups/$TIMESTAMP" | |
TAR=/usr/bin/tar | |
AWS=/usr/bin/aws | |
mkdir -p "$BACKUP_DIR" | |
$TAR -zcvf $BACKUP_DIR/files.tar.gz $FILES_DIR | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('Migrations') | |
->in(__DIR__ . '/src') | |
->in(__DIR__ . '/tests'); | |
return PhpCsFixer\Config::create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Service/FeatureFlagService.php | |
declare(strict_types=1); | |
namespace App\Service; | |
use GuzzleHttp\ClientInterface; | |
use Symfony\Component\HttpFoundation\Request; |
OlderNewer