Module: Backup::Helper
- Included in:
- Database, Dump::Postgres, Files
- Defined in:
- lib/backup/helper.rb
Instance Method Summary collapse
Instance Method Details
#access_denied_error(path) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/backup/helper.rb', line 5 def access_denied_error(path) = <<~EOS ### NOTICE ### As part of restore, the task tried to move existing content from #{path}. However, it seems that directory contains files/folders that are not owned by the user #{Gitlab.config.gitlab.user}. To proceed, please move the files or folders inside #{path} to a secure location so that #{path} is empty and run restore task again. EOS raise end |
#gzip_cmd ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/backup/helper.rb', line 33 def gzip_cmd @gzip_cmd ||= if ENV['GZIP_RSYNCABLE'] == 'yes' "gzip --rsyncable -c -1" else "gzip -c -1" end end |
#resource_busy_error(path) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/backup/helper.rb', line 19 def resource_busy_error(path) = <<~EOS ### NOTICE ### As part of restore, the task tried to rename `#{path}` before restoring. This could not be completed, perhaps `#{path}` is a mountpoint? To complete the restore, please move the contents of `#{path}` to a different location and run the restore task again. EOS raise end |