Skip to content

Conversation

efatsi
Copy link

@efatsi efatsi commented Sep 7, 2016

This is an awesome tool, thanks for the work on it so far.

I often just need to create a backup without loading the database onto my local environment though. A nice thing to have automatically run in front of deploys in case things go poorly.

backup_dir = instance.fetch(:db_backup_dir)

instance.logger.info("Unzipping database backup and storing in #{backup_dir}")
system("bunzip2 -f #{file} && mkdir -p #{backup_dir} && mv #{unzip_file} #{backup_dir}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use compressor.decompress(file) like here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants