Category Bash and Scripts

Show top processes consume RAM Memory on Centos Redhat RHEL Fedora

Show top processes consume RAM Memory on Centos Redhat RHEL Fedora

Read More

Script convert wav files to mp3 files / wav2mp3 on Linux / Asterisk

Script convert wav files to mp3 files / wav2mp3 on Linux / Asterisk

Read More

Wget a HTTP / FTP minor / link / URL with username password

Wget a HTTP / FTP minor / link / URL with username password

Read More

Delete / Remove a line with string / word on Linux

Delete / Remove a line with string / word on Linux

Read More

Find and delete / remove files older specific days on Linux

Find and delete / remove files older specific days on Linux

Read More

Find and delete / remove files older 90 days / 3 months / 1 quarter on Linux

Find and delete / remove files older 90 days / 3 months / 1 quarter on Linux

Read More

Find and delete / remove files older 7 days / 1 week on Linux

Find and delete / remove files older 7 days / 1 week on Linux

Read More

Find and delete / remove files older 30 days / 1 month on Linux

Find and delete / remove files older 30 days / 1 month on Linux

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