mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 15:15:50 +08:00
Merge pull request #4907 from pfaffman/tar-take-3
FIX: allow tar to finish if files change during backup
This commit is contained in:
commit
251aa8c5f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user