Performs backups from Directories, SQL Server, MySQL, Oracle, PostgreSQL and MongoDb and upload to AWS S3, Azure Blob or Google Cloud Storage
Execute
mvn package
Execute
mvn javadoc:javadoc
1.- Install java 8
2.- Build and copy the package
3.- Execute "java -jar HCB.jar configure" to create a configuration file
4.- Execute "java -jar HCB.jar start configuration_file.properties" to perform backup
java -jar HCB.jar
java -jar HCB.jar start
java -jar HCB.jar start hcb_mysql_s3.properties
java -jar HCB.jar configure
java -jar HCB.jar configure 8888
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?tabs=azure-portal
https://cloud.google.com/docs/authentication/getting-started
SET mydate=%DATE%
SET mydate=%mydate:/=-%
SET logFile=C:\Apps\hcb\hcb_%mydate%.log
SET jarFile=C:\Apps\hcb\HCB.jar
SET cnfFile=C:\Apps\hcb\sqlserver.properties
java -Xms256M -Xmx1G -jar %jarFile% start %cnfFile% >> %logFile%
#!/bin/bash
logFile=/home/centos/hcb/hcb_$(date +%d-%m-%Y).log
jarFile=/home/centos/hcb/HCB.jar
cnfFile=/home/centos/hcb/mysql.properties
java -Xms256M -Xmx1G -jar ${jarFile} start ${cnfFile} >> ${logFile}
For check mysqldump, execute.
mysqldump --help
https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html
For check mysqlpump, execute.
mysqlpump --help
https://dev.mysql.com/doc/refman/5.7/en/mysqlpump.html
For check innobackupex, execute.
innobackupex --help
https://www.percona.com/doc/percona-xtrabackup/2.4/index.html
For check expdp, execute.
expdp help=y
https://oracle-base.com/articles/10g/oracle-data-pump-10g
For check pg_dump, execute.
pg_dump --help
https://www.postgresql.org/docs/10/app-pgdump.html
For check mongodump, execute.
mongodump --help
https://docs.mongodb.com/v3.6/reference/program/mongodump/
For check xtrabackup, execute.
xtrabackup --help
https://www.percona.com/doc/percona-xtrabackup/8.0/index.html
The default properties file is hcb.properties and the default port is 10080.
For MySQL backups must be accesible mysqldump, mysqlpump, innobackupex or xtrabackup tools.
For Oracle backups must be accesible expdp (Oracle Data Pump).
For PostgreSQL backups must be accesible pg_dump tool.
For MongoDb backups must be accesible mongodump tool.
P.D. Let's go play !!!