Class: ServerBackups::WebsiteRestore
- Inherits:
-
RestoreBase
- Object
- RestoreBase
- ServerBackups::WebsiteRestore
- Defined in:
- lib/server_backups/website_restore.rb
Instance Attribute Summary
Attributes inherited from RestoreBase
#config, #database, #restore_point, #s3, #working_dir
Instance Method Summary collapse
Methods inherited from RestoreBase
Constructor Details
This class inherits a constructor from ServerBackups::RestoreBase
Instance Method Details
#do_restore ⇒ Object
12 13 14 15 16 17 |
# File 'lib/server_backups/website_restore.rb', line 12 def do_restore logger.warn "Moving old #{config.web_root} ---->>> #{config.web_root}.backup\n" \ 'You will have to delete it yourself.' make_copy_of_existing_web_root files_to_restore.each_with_index { |file, index| restore_file(file, index) } end |
#files_to_restore ⇒ Object
7 8 9 10 |
# File 'lib/server_backups/website_restore.rb', line 7 def files_to_restore [all_files.full_backup_for(restore_point), *all_files.incremental_backups_for(restore_point)] end |