mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05:00
warn users it may take a while to un/zip backup
This commit is contained in:
parent
ab5337b79c
commit
8c52508007
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue