crontab

This is a discussion on crontab within the Linux General forums, part of the Linux Forums category; I want automatic upgrade_export tools that do backup of my sistem. I use SPLAT for check point. [Expert@MNGFW01]# crontab -...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-30-2008
Pussala@gmail.com
 
Posts: n/a
Default crontab

I want automatic upgrade_export tools that do backup of my sistem.
I use SPLAT for check point.

[Expert@MNGFW01]# crontab -e:

50 12 * * * cd /opt/CPsuite-R62/fw1/bin/upgrade_tools
51 12 * * * echo | ./upgrade_export appoggio
25 13 * * * oggi=`date`
26 13 * * * mv appoggio.tgz.tar $oggi
27 13 * * * scp $oggi root@172.28.121.16:/data/backup_2008

[Expert@MNGFW01]# less /var/log/cron

Apr 30 12:50:00 MNGFW01 CROND[22798]: (root) CMD (cd /opt/CPsuite-R62/
fw1/bin/upgrade_tools)
Apr 30 12:51:00 MNGFW01 CROND[22806]: (root) CMD (echo | ./
upgrade_export appoggio)
Apr 30 12:52:24 MNGFW01 crontab[22820]: (root) LIST (root)
Apr 30 12:53:19 MNGFW01 crontab[22821]: (root) LIST (root)
Apr 30 12:54:14 MNGFW01 crontab[22827]: (root) BEGIN EDIT (root)
Apr 30 12:54:26 MNGFW01 crontab[22827]: (root) END EDIT (root)
Apr 30 13:25:00 MNGFW01 CROND[22966]: (root) CMD (oggi=`date`)
Apr 30 13:25:54 MNGFW01 crontab[22972]: (root) LIST (root)
Apr 30 13:26:00 MNGFW01 CROND[22974]: (root) CMD (mv appoggio.tgz.tar
$oggi)
Apr 30 13:27:00 MNGFW01 CROND[22980]: (root) CMD (scp $oggi
root@172.28.121.16:/data/backup_2008 )
Apr 30 13:28:30 MNGFW01 crontab[22988]: (root) LIST (root)
Apr 30 13:29:30 MNGFW01 crontab[22997]: (root) BEGIN EDIT (root)
Apr 30 13:30:05 MNGFW01 crontab[22997]: (root) END EDIT (root)

If I run commands without crontab all ok!
With crontab run upgrade_export but does not create anything!

What happens?
Where is the error?
Reply With Quote
  #2 (permalink)  
Old 04-30-2008
Bill Marcum
 
Posts: n/a
Default Re: crontab

On 2008-04-30, Pussala@gmail.com <Pussala@gmail.com> wrote:
>
>
> I want automatic upgrade_export tools that do backup of my sistem.
> I use SPLAT for check point.
>
> [Expert@MNGFW01]# crontab -e:
>
> 50 12 * * * cd /opt/CPsuite-R62/fw1/bin/upgrade_tools
> 51 12 * * * echo | ./upgrade_export appoggio
> 25 13 * * * oggi=`date`
> 26 13 * * * mv appoggio.tgz.tar $oggi
> 27 13 * * * scp $oggi root@172.28.121.16:/data/backup_2008
>
> [Expert@MNGFW01]# less /var/log/cron
>
> Apr 30 12:50:00 MNGFW01 CROND[22798]: (root) CMD (cd /opt/CPsuite-R62/
> fw1/bin/upgrade_tools)
> Apr 30 12:51:00 MNGFW01 CROND[22806]: (root) CMD (echo | ./
> upgrade_export appoggio)
> Apr 30 12:52:24 MNGFW01 crontab[22820]: (root) LIST (root)
> Apr 30 12:53:19 MNGFW01 crontab[22821]: (root) LIST (root)
> Apr 30 12:54:14 MNGFW01 crontab[22827]: (root) BEGIN EDIT (root)
> Apr 30 12:54:26 MNGFW01 crontab[22827]: (root) END EDIT (root)
> Apr 30 13:25:00 MNGFW01 CROND[22966]: (root) CMD (oggi=`date`)
> Apr 30 13:25:54 MNGFW01 crontab[22972]: (root) LIST (root)
> Apr 30 13:26:00 MNGFW01 CROND[22974]: (root) CMD (mv appoggio.tgz.tar
> $oggi)
> Apr 30 13:27:00 MNGFW01 CROND[22980]: (root) CMD (scp $oggi
> root@172.28.121.16:/data/backup_2008 )
> Apr 30 13:28:30 MNGFW01 crontab[22988]: (root) LIST (root)
> Apr 30 13:29:30 MNGFW01 crontab[22997]: (root) BEGIN EDIT (root)
> Apr 30 13:30:05 MNGFW01 crontab[22997]: (root) END EDIT (root)
>
> If I run commands without crontab all ok!
> With crontab run upgrade_export but does not create anything!
>
> What happens?
> Where is the error?


Write the commands in a script and run it in crontab. Each line of the
crontab is executed in a separate shell.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0