If you want to delete log files or folders in /var/log directory which are older than 200 days then you can follow the below steps
To list the files which are older than 200 days
#find /var/log -mtime +200
After verifying ,you can delete those files/folders
#find /var/log -mtime +200 -exec rm {} \;
Full story
Here is the sample shellscript to take backup of all batabase
{code codetype=php}
#!/bin/bash
export DB_BACKUP="/backup/mysql_backup"
Full story
- Monday, July 12, 2010, 9:05
- Linux, Shell scripting
Rsync: rsync is an application used in unix systems which synchronize files and directories between two machines.rsync behaves like rcp(remote file copy),but it much faster than rcp.because rsync sends the differences in the files instead of sending entire files.
Full story