Operating System - HP-UX
1838681 Members
4253 Online
110128 Solutions
New Discussion

Re: file date changes during fbackup

 
Starrynight_1
Advisor

file date changes during fbackup

Hello all

There is a strange thing happening in my system. There is a tar file (owned by root) that has a diferent date everyday, the same date (and time) when an fbackup was made during the night...
For me, this is very strange, first because I don??t know who created this file and second because the night backup it??s not made with tar.
Clue: the backup is made with fbackup, to tape (DLT7000) and by a user with root privileges but that as only access to a menu.

Any help would be good.

Thanks

SN
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: file date changes during fbackup

This is almost certainly a backup scheduled by cron. Examine your crontab entries and I think your mystery will be solved.
If it ain't broke, I can fix that.
T. M. Louah
Esteemed Contributor

Re: file date changes during fbackup

..check cron jobs with "crontab -l "
root:> crontab -l
Little learning is dangerous!
Kenny Chau
Trusted Contributor

Re: file date changes during fbackup

Hi,

Try this:

# crontab -l | grep tar

to see if anyone set the tar job at the cron list.

Hope this helps.
Kenny.
Kenny
Michael Tully
Honored Contributor

Re: file date changes during fbackup

Hi,

If these suggestions don't find it, you
will need to go through the various scripts
that run from cron and look for the tar
backup(s) that way.

Michael
Anyone for a Mutiny ?
Starrynight_1
Advisor

Re: file date changes during fbackup

Hi everybody

Looking in crontab was the fisrt thing I??ve done. That is not where the problem is.
Thank you anyway.
Any other sugestions?

SN
Steven Sim Kok Leong
Honored Contributor

Re: file date changes during fbackup

Hi,

Note the creation time of the tar file. Run a scheduled cron job that runs a few minutes after the regular tar file creation to capture the following to aid diagnostics:

#!/sbin/sh
LOGFILE=/tmp/tar.txt

touch $LOGFILE
ps -fae >> $LOGFILE
netstat -a >> $LOGFILE
who >> $LOGFILE
last -10 >> $LOGFILE
elm -s"[TRACE] unknown tar" < $LOGFILE

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: file date changes during fbackup

Hi,

Remember to specify your_email_address:

elm -s"[TRACE] unknown tar" your_email_address < $LOGFILE

This minimises the chance that the culprit tries to remove your log file.

Hope this helps. Regards.

Steven Sim Kok Leong