New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-jhipster-database-backup

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-jhipster-database-backup

This module allows you to generate .yml files allowing you to make periodic backups of your production database. For the moment : MYSQL, POSTGRESQL, MONGODB and MARIADB are supported.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-30.43%
Maintainers
1
Weekly downloads
 
Created
Source

generator-jhipster-database-backup

NPM version Build Status Dependency Status

JHipster module, This module allows you to generate .yml files allowing you to make regular backups of your production database.

Introduction

This is a JHipster module, that is meant to be used in a JHipster application.

Prerequisites

As this is a JHipster module, we expect you have JHipster and its related tools already installed:

Installation

With Yarn

To install this module:

yarn global add generator-jhipster-database-backup

To update this module:

yarn global upgrade generator-jhipster-database-backup

With NPM

To install this module:

npm install -g generator-jhipster-database-backup

To update this module:

npm update -g generator-jhipster-database-backup

Usage

First, you have to run the generator using the following command :

yo jhipster-database-backup

Then enter the required parameter (backup frequency), don't forget the whitespace if you are using CRON (https://en.wikipedia.org/wiki/Cron).

Now a 'backup-.yml' file has been created in the following folder : src/main/docker

This service will periodically backup your database.

Then start your database Your database should be initialized and started in a docker image using the '.yml' file located in 'src/main/docker'.

sudo docker-compose -f <database-name>.yml up

If the database failed to start, you should check if the port is free (for example 'sudo service mysql stop' to stop the default mysql service).

Finally, start the backup service :

sudo docker-compose -f backup-<database-name>.yml up

You will find your backups in the backup folder located in : src/main/docker

MYSQL

To find more details about the docker image and the parameters click here https://hub.docker.com/r/deitch/mysql-backup.

POSTGRESQL

To find more details about the docker image and the parameters click here https://hub.docker.com/r/contributionjhipster/docker-pg_dump

MONGODB

Your database must not be empty ! To find more details about the docker image and the parameters click here https://github.com/tutumcloud/mongodb-backup/tree/master

MARIADB

To find more details about the docker image and the parameters click here https://hub.docker.com/r/deitch/mysql-backup.

License

MIT © Contribution JHipster UGA

Keywords

FAQs

Package last updated on 05 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc