From 8c525080076e31b003f8a0152490cf32de9da53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 23 May 2016 09:33:29 +0200 Subject: [PATCH] warn users it may take a while to un/zip backup --- lib/backup_restore/backuper.rb | 4 ++-- lib/backup_restore/restorer.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/backup_restore/backuper.rb b/lib/backup_restore/backuper.rb index b55d73590..163bc8450 100644 --- a/lib/backup_restore/backuper.rb +++ b/lib/backup_restore/backuper.rb @@ -257,12 +257,12 @@ module BackupRestore end end - log "Gzipping archive..." + log "Gzipping archive, this may take a while..." `gzip -5 #{tar_filename}` end 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.after_create_hook end diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb index 15c177240..3b843998a 100644 --- a/lib/backup_restore/restorer.rb +++ b/lib/backup_restore/restorer.rb @@ -161,7 +161,7 @@ module BackupRestore end def unzip_archive - log "Unzipping archive..." + log "Unzipping archive, this may take a while..." FileUtils.cd(@tmp_directory) { `gzip --decompress '#{@archive_filename}'` } end