Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Take backup of scripts listed in crontab

$
0
0
Hi,

I'm trying to take backups of script files listed in cron tab

but,my cron entry has value like this
Code:

10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
00,15,30,45 * * * * /opt/EABcsConfig/bin/metacheck.ksh 
00,15,30,45 * * * * /opt/EABcsConfig/bin/check_zfs_pool.ksh 
0 03 * * 2 /opt/EABcsConfig/bin/scrub_zfs_pool.ksh 
00 2 * * * /opt/EABcsutls/backup/backup.sh 
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/EABaircfg/bin/psrbind AirXmlRpcIf 14,15 
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/EABfds/bin/fdscorecleaner >>/dev/null 
52 * * * * /opt/EABfds/bin/configurationBackup.pl >>/dev/null 
5,15,25,35,45,55 * * * * /scripts/air_traffic_check.sh > /dev/null 2>&1
10 * * * * /scripts/air_hc.sh > /dev/null 2>&1
05 0 * * * perl /scripts/GNOCAutomation/scripts/calculate_airlookups.pl>/dev/null
15 0 * * * perl /scripts/GNOCAutomation/scripts/airEastNewSec.pl>/dev/null
30 0 * * * perl /scripts/GNOCAutomation/scripts/utilWriter.pl>/dev/null
0 * * * * perl /scripts/GNOCAutomation/scripts/resource_utilization.pl > /dev/null
0,10,20,30,40,50 * * * * /usr/lib/sa/sa1
00 8 * * * /usr/lib/sa/sa2 -A
#0,10,20,30,40,50 * * * * /opt/temp/mv_sec_prim
0,5,10,15,20,25,30,35,40,45,50,55  * * * *  su - root -c "/scripts/java_memory_usage.sh" >>/dev/null
00 6 * * *  su - root -c "/var/opt/script/TraceRemover/DeleteTrace.sh" > /dev/null 2>&1
0,10,20,30,40,50 * * * *  su - root -c "/var/opt/script/MoveDR/mv_sec_prim.sh" > /dev/null 2>&1
#00 5 * * * /scripts/old_stat_removal.sh
00 * * * * sh /export/home/etigers/script_new/netstat_script.sh
0 5 * * * /opt/temp/air_backup.sh


which are unable to distinguished by any specific delimeter like cut -d " " -f6.

I hope a line by line parsing and printing only will help.please help me out how to take it

Advance thanks

Sivarajan.N
[/B]

Viewing all articles
Browse latest Browse all 16232

Trending Articles