mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
disable the backup system for now
This commit is contained in:
parent
67ba9b320e
commit
fe90bf4bdc
1 changed files with 9 additions and 9 deletions
18
lib/base.php
18
lib/base.php
|
|
@ -150,15 +150,15 @@ class OC_UTIL {
|
|||
if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem
|
||||
//first set up the local "root" storage and the backupstorage if needed
|
||||
$rootStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_DATADIRECTORY));
|
||||
if( OC_CONFIG::getValue( "enablebackup", false )){
|
||||
// This creates the Directorys recursively
|
||||
if(!is_dir( "$CONFIG_BACKUPDIRECTORY/$user/$root" )){
|
||||
mkdir( "$CONFIG_BACKUPDIRECTORY/$user/$root", 0755, true );
|
||||
}
|
||||
$backupStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_BACKUPDIRECTORY));
|
||||
$backup=new OC_FILEOBSERVER_BACKUP(array('storage'=>$backupStorage));
|
||||
$rootStorage->addObserver($backup);
|
||||
}
|
||||
// if( OC_CONFIG::getValue( "enablebackup", false )){
|
||||
// // This creates the Directorys recursively
|
||||
// if(!is_dir( "$CONFIG_BACKUPDIRECTORY/$user/$root" )){
|
||||
// mkdir( "$CONFIG_BACKUPDIRECTORY/$user/$root", 0755, true );
|
||||
// }
|
||||
// $backupStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_BACKUPDIRECTORY));
|
||||
// $backup=new OC_FILEOBSERVER_BACKUP(array('storage'=>$backupStorage));
|
||||
// $rootStorage->addObserver($backup);
|
||||
// }
|
||||
OC_FILESYSTEM::mount($rootStorage,'/');
|
||||
|
||||
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";
|
||||
|
|
|
|||
Loading…
Reference in a new issue