diff --git a/script/discourse b/script/discourse index b6c14276b..d5d800a33 100755 --- a/script/discourse +++ b/script/discourse @@ -41,6 +41,9 @@ class DiscourseCLI < Thor backup = backuper.run if filename.present? puts "Moving '#{backup}' to '#{filename}'" + puts "Including version number into '#{filename}'" + version_string = File.basename(backup)[/-#{BackupRestore::VERSION_PREFIX}\d{14}/] + filename = filename.dup.insert(filename.index('.'), version_string) FileUtils.mv(backup, filename) backup = filename end