Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-09-08 12:55:33 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-09-15 16:48:51 +0300
commit6d82e3be708525b8ade2bbc74f2d1c05c0d80849 (patch)
tree0d429904cc2924fc5062b5251ec5aa3dcc944640
parenta4a3248d541fb82f3c9f8f9bf0774c1b70324ab3 (diff)
Add timestamp to backup directory
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index f97367b..7cd145b 100644
--- a/index.php
+++ b/index.php
@@ -469,7 +469,7 @@ class Updater {
];
// 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');