From 01826b9c18e8ee7e02cf145551aedb5f1dd14fae Mon Sep 17 00:00:00 2001 From: riking Date: Thu, 6 Mar 2014 16:34:31 -0800 Subject: [PATCH] Add site name to beginning of backup filename --- lib/export/exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/export/exporter.rb b/lib/export/exporter.rb index 03944431ef7..178bee089c4 100644 --- a/lib/export/exporter.rb +++ b/lib/export/exporter.rb @@ -71,7 +71,7 @@ module Export @dump_filename = File.join(@tmp_directory, BackupRestore::DUMP_FILE) @meta_filename = File.join(@tmp_directory, BackupRestore::METADATA_FILE) @archive_directory = File.join(Rails.root, "public", "backups", @current_db) - @archive_basename = File.join(@archive_directory, @timestamp) + @archive_basename = File.join(@archive_directory, "#{SiteSetting.title.parameterize}-#{@timestamp}") end def listen_for_shutdown_signal