Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
MarcoLuvisi
Participant

Backup configuration script

Good morning,

I have find in our Customer fw this script configured on GAIA Scheduler, but I don't say if self-made or is CP made:

[Expert@server-fwman:0]# cat fwmgmt.sh

#!/bin/bash

HOMEDIR=/home/admin

CPPROFILE=/opt/CPshared/5.0/tmp/.CPprofile.sh

##. /home/fwadmin/CPprofile.sh

##. /opt/CPshrd-R75.40/tmp/.CPprofile.sh

$CPPROFILE

echo $FWDIR > /tmp/server-fwman.out

echo $CPDIR >> /tmp/server-fwman.out

echo "CP management backup" >> /tmp/fwmgmtbck.out

mkdir -p /var/log/bck

/bin/rm -f /var/log/bck/server-fwman.*.tgz

$FWDIR/bin/upgrade_tools/migrate export -n /var/log/bck/server-fwman.$(date +%F)

cd /var/log/bck

ftp -i -n -v 10.10.10.39 < $HOMEDIR/ftp.cmds

## clean up tmp files

/bin/rm -Rf $FWDIR/tmp/migrate/

 

We don't find in $HOMEDIR/ftp.cmds file, it's possible deleted from upgrade ?
Regards

Marco Luvisi | Support Engineer | CCSA CCSE R81
0 Kudos
4 Replies
simonemantovani
Contributor

Hello

I think it's selfmade, the ftp.cmds it should be the file that contains the command to be executed when the script open FTP connection (probably cnage dir, get files, etc.).

0 Kudos
the_rock
MVP Diamond
MVP Diamond

To me, logically, that looks self-made based on the content, specially considering ftp server shows private range IP address.

Best,
Andy
0 Kudos
S_E_
Advisor

Hi,

hm, your script does a migrate export and not a backup.

If I'm not mistaken, 'migrate export' does a cpstop/cpstart.

A real backup/mds_backup/snapshot command has to my experience no impact.

Not sure if this is desired behavior for some customers.

Regards

0 Kudos
the_rock
MVP Diamond
MVP Diamond

It does cprestart, correct.

Best,
Andy
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 24 Feb 2026 @ 04:30 PM (EST)

    Las Vegas: MDR/XMDR

    Wed 25 Feb 2026 @ 04:30 PM (MST)

    Tempe, AZ: MDR/MXDR

    Wed 11 Mar 2026 @ 12:00 PM (MDT)

    CheckMates Live Denver!
    CheckMates Events