File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class ConfigService {
62
62
public const PACK_BACKUP = 'pack_backup ' ;
63
63
public const BACKUP_DAYS = 'backup_days ' ;
64
64
65
+ public const INCLUDE_LOGS = 'include_logs ' ;
65
66
public const PACK_ENCRYPT = 'pack_encrypt ' ;
66
67
public const PACK_COMPRESS = 'pack_compress ' ;
67
68
public const PACK_INDEX = 'pack_index ' ;
@@ -99,6 +100,7 @@ class ConfigService {
99
100
self ::MOCKUP_DATE => 0 ,
100
101
self ::BACKUP_DAYS => 60 ,
101
102
103
+ self ::INCLUDE_LOGS => '1 ' ,
102
104
self ::PACK_ENCRYPT => '1 ' ,
103
105
self ::PACK_COMPRESS => '1 ' ,
104
106
self ::PACK_INDEX => '1 ' ,
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ public function __construct(
101
101
*/
102
102
public function fillRestoringData (RestoringData $ data , string $ path ): void {
103
103
if (!is_dir ($ data ->getAbsolutePath () . rtrim ($ path , '/ ' ))) {
104
+ if ($ data ->getType () === RestoringData::ROOT_DATA
105
+ && !$ this ->configService ->getAppValueBool (ConfigService::INCLUDE_LOGS )
106
+ && $ path === 'nextcloud.log ' ) {
107
+ return ;
108
+ }
109
+
104
110
$ data ->addFile ($ path );
105
111
106
112
return ;
You can’t perform that action at this time.
0 commit comments