Skip to content

Commit 7629ec2

Browse files
committed
Use local storage for backups for now
1 parent 3db54bc commit 7629ec2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

app/Lio/ServiceProviders/BackupServiceProvider.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ protected function registerBackupCleaner()
4949
{
5050
$this->app->bindShared('backup.cleaner', function($app) {
5151
$storage = $app['config']['backup-manager::storage'];
52-
$destination = $app['config']->get('backup.destination');
52+
// $destination = $app['config']->get('backup.destination');
5353

54-
if ($destination === 's3') {
55-
$config = $storage['s3'];
56-
57-
$client = S3Client::factory([
58-
'key' => $config['key'],
59-
'secret' => $config['secret'],
60-
'region' => $config['region'],
61-
]);
62-
$adapter = new AwsS3($client, $config['bucket']);
63-
} else {
54+
// if ($destination === 's3') {
55+
// $config = $storage['s3'];
56+
//
57+
// $client = S3Client::factory([
58+
// 'key' => $config['key'],
59+
// 'secret' => $config['secret'],
60+
// 'region' => $config['region'],
61+
// ]);
62+
// $adapter = new AwsS3($client, $config['bucket']);
63+
// } else {
6464
$adapter = new Local($storage['local']['root']);
65-
}
65+
// }
6666

6767
return new BackupCleaner(new Filesystem($adapter));
6868
});

0 commit comments

Comments
 (0)