viernes, 27 de mayo de 2016

Automatic Light ADempiere Backup

Create and save file with name "LightADempiereBackup.sh" and write the next content:

#################################################

#!/bin/sh
# Making a light ADempiere backup
# Author: ingenierojosefrancisco@gmail.com

today=$(date +"%d%m%Y_%I%M%S")
# echo "$today"

pg_dump -Fc -h DBServerName DBName -U UserName -v -W -T 'ad_changelog' -T 'ad_issue' > /home/user/Documents/CompanyName$today.backup

#################################################

Then, you can run it using the next terminal commands:

sudo chmod +x LightADempiereBackup.sh
sudo ./LightADempiereBackup.sh

No hay comentarios:

Publicar un comentario