Method: Higgs::Utils::BackupManager#backup_data
- Defined in:
- lib/higgs/utils/bman.rb
#backup_data ⇒ Object
231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/higgs/utils/bman.rb', line 231 def backup_data unless (@from) then raise 'required from_storage' end unless (@to) then raise 'required to_storage' end @out << log('start data backup.') if (@verbose >= 1) FileUtils.cp("#{@from}.tar", "#{@to}.tar", :preserve => true, :verbose => @verbose >= 2) @out << log('completed data backup.') if (@verbose >= 1) nil end |