Skip to content

Commit

Permalink
Add timestamp to backup directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen authored and MorrisJobke committed Sep 15, 2020
1 parent 6353df3 commit 940e53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 940e53f

Please sign in to comment.