From e3ff928c753447bfad33ff3facd51bfde3e32878 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Mon, 23 Apr 2018 11:40:55 +0200 Subject: Describe workaround when restore fails because of `Errno::EBUSY` When `Errno::EBUSY` is raised during restore, this could indicate that the directory being restored into is a mountpoint. In this case we explain the user how to retry the restore. --- lib/backup/files.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/backup/files.rb') diff --git a/lib/backup/files.rb b/lib/backup/files.rb index 88cb7e7b5a4..9895db9e451 100644 --- a/lib/backup/files.rb +++ b/lib/backup/files.rb @@ -53,6 +53,8 @@ module Backup FileUtils.mv(files, timestamped_files_path) rescue Errno::EACCES access_denied_error(app_files_dir) + rescue Errno::EBUSY + resource_busy_error(app_files_dir) end end end -- cgit v1.2.3