Merge pull request #4907 from pfaffman/tar-take-3

FIX: allow tar to finish if files change during backup
This commit is contained in:
Matt Palmer 2017-06-08 15:47:28 +10:00 committed by GitHub
commit 251aa8c5f9

View File

@ -230,7 +230,7 @@ module BackupRestore
FileUtils.cd(File.join(Rails.root, "public")) do
if File.directory?(upload_directory)
Discourse::Utils.execute_command(
'tar', '--append', '--dereference', '--file', tar_filename, upload_directory,
'tar', '--append', '--dereference', '--warning=no-file-changed', '--file', tar_filename, upload_directory,
failure_message: "Failed to archive uploads."
)
else