Category Debian

Increase swap on Ubuntu 12

Increase swap on Ubuntu 12

ubuntu

Exam...

Read More

Best way to backup Postgresql database

Best way to backup Postgresql database 

Step 1:  Create script to backup database

cat /opt/backup_postgresql.sh
#!/bin/sh
export PGPASSWORD=xxxxxxxx
/opt/PostgreSQL/9.0/bin/pg_dump database1 -U user > /tmp/Backup/database1_db_$(date +%Y-%m-%d) 

Step 2: Create crontab to run automatically everyday.

00 00 * * *  /opt/backup_postgresql.sh

That’s all. Thanks for using ithelpblog.com.

Read More

Best ways to check your public IP or External IP

Best ways to check your public IP or External IP 

In Linux, we have some best ways to check Public IP for that server.

1. curl ifconfig.me

2. wget -qO- ipecho.net/plain

3. wget -qO- ifconfig.me/ip

Read More

Set time-out for SSH on Linux

Set time-out for SSH on Linux

bash and script on Linux

 

 

SSH login to Server and modify .bashrc in home directory.

TMOUT=3600

 

 

That’s all. Thanks for using IThelpblog.com

Read More

SSH login alert via email

SSH login alert via email

bash and script on Linux

Step...

Read More

Install Ubuntu Server 12

Install Ubuntu Server 12

ubuntu

Step 1:  Choose Language

Step 2: C...

Read More