warn users it may take a while to un/zip backup

This commit is contained in:
Régis Hanol 2016-05-23 09:33:29 +02:00
parent ab5337b79c
commit 8c52508007
2 changed files with 3 additions and 3 deletions

View file

@ -257,12 +257,12 @@ module BackupRestore
end end
end end
log "Gzipping archive..." log "Gzipping archive, this may take a while..."
`gzip -5 #{tar_filename}` `gzip -5 #{tar_filename}`
end end
def after_create_hook def after_create_hook
log "Executing the after_create_hook for the backup" log "Executing the after_create_hook for the backup..."
backup = Backup.create_from_filename("#{File.basename(@archive_basename)}.tar.gz") backup = Backup.create_from_filename("#{File.basename(@archive_basename)}.tar.gz")
backup.after_create_hook backup.after_create_hook
end end

View file

@ -161,7 +161,7 @@ module BackupRestore
end end
def unzip_archive def unzip_archive
log "Unzipping archive..." log "Unzipping archive, this may take a while..."
FileUtils.cd(@tmp_directory) { `gzip --decompress '#{@archive_filename}'` } FileUtils.cd(@tmp_directory) { `gzip --decompress '#{@archive_filename}'` }
end end