From 940e53fa466caf75bcf74cb5942104d1a4d64826 Mon Sep 17 00:00:00 2001 From: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Date: Tue, 8 Sep 2020 11:55:33 +0200 Subject: [PATCH] Add timestamp to backup directory --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 2c4ac378..349b4a2d 100644 --- a/index.php +++ b/index.php @@ -469,7 +469,7 @@ public function createBackup() { ]; // Create new folder for the backup - $backupFolderLocation = $this->getDataDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid').'/backups/nextcloud-'.$this->getConfigOption('version') . '/'; + $backupFolderLocation = $this->getDataDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid').'/backups/nextcloud-'.$this->getConfigOption('version') . '-' . time() . '/'; if(file_exists($backupFolderLocation)) { $this->silentLog('[info] backup folder location exists');