我正在使用 spatie 的 laravel-backup 来备份我的 laravel 应用程序文件和数据库,并将它们存储在数字海洋空间中。这对我来说很好用。
我有另一个数字海洋空间,上传的用户文件被存储到。
我的问题是。我是否也需要备份数字海洋空间?或者可以信任他们吗?数字海洋备份空间自己不知何故?
这是我用来备份我的东西的配置文件:
<?php
return [
'backup' => [
/*
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => env('APP_NAME', 'laravel-backup'),
'source' => [
'files' => [
/*
* The list of directories and files that will be included in the backup.
*/
'include' => [
base_path(),
],
/*
* These directories and files will be excluded from the backup.
*
* Directories used by the backup process will automatically be excluded.
*/
'exclude' => [
base_path('vendor'),
base_path('node_modules'),
],
/*
* Determines if symlinks should be followed.
*/
'follow_links' => false,
],
你们是如何处理备份用户文件的?
系统信息:
Laravel 5.8.28 MySQL 5.7 PHP 7.2
慕工程0101907