Activities

April 2010
M T W T F S S
« Mar   May »
 1234
567891011
12131415161718
19202122232425
2627282930  

How do I remove older backup automatically both for Linux and Windows

This is really helpful to Sys-Admin who is managing various backup on different geographical locations.

For Linux,

The following commands will help you to remove your old backup which cost disk usage. I used this script to remove the older backup using a cronjob.

[root@ip-8-11-50-231 database]# crontab -l 00 04 1,16 * * /usr/bin/find […]

How do I add route on Mac OS or Disable internet on MaC for testing offline application

I have created two scripts which is added on sudo list. One is for removing default gateway and another one is adding the gateway.

1. # vi en_web.sh and add the following line /sbin/route add -net 0.0.0.0/0 192.168.0.9 2. vi dis_web.sh and add the following lines /sbin/route delete -net 0.0.0.0/0

3. Add the sudo entry […]