SUSE LINUX Enterprise & openSUSE Community
มกราคม 18, 2019, 10:37:57 PM *
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
ส่งอีเมล์ยืนยันการใช้งาน?

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
ข่าว:
 
   หน้าแรก   ช่วยเหลือ ค้นหา เข้าสู่ระบบ สมัครสมาชิก  

[Why we need your support] SUSE and openSUSE are trademarks of Attachmate Group, Inc. - WE ARE NOT IN ANY WAY ASSOCIATED WITH SUSE AND ATTACHMATE GROUP. SUSEThailand.com is a SUSE Linux user and community found in Thailand but not limited to other country suse linux user to join in. Currently active contents (How to's, Scripts, Tips, Tricks, Tutorials, Linux Command Line, and Troubleshooting) this suse linux how to's and expert support are SUSE Linux.
หน้า: [1]   ลงล่าง
  พิมพ์  
ผู้เขียน
หัวข้อ: Script สำหรับ backup ไฟล์คอนฟิกเซอร์วิสต่างๆ (Backup file configuration)  (อ่าน 1371 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
Sontaya
Administrator
Expert : ผู้เชี่ยวชาญ
*****

Karma: +1/-0
ออฟไลน์ ออฟไลน์

กระทู้: 1931


Administrator


เว็บไซต์
« เมื่อ: กันยายน 01, 2010, 02:02:49 PM »


How to Backup file configuration on Linux

Shell script สำหรับใช้ในการสำรองไฟล์คอนฟิกของเซอร์วิสต่างๆ ไปยังเครื่อง Backup Server อีกที

คุณสมบัติ
- สำรองไฟล์คอนฟิก เช่น
#Backup /etc/profile.d
#Backup /etc/*onf*
#Backup Samba file configuration
#Backup Apache2 file configuration
#Backup Squid file configuration
#Backup Postfix file configuration
#Backup DNS Server file configuration
#Backup apcupsd file configuration
#Backup MailScanner file configuration
#Backup postgrey file configuration
#Backup dovecot file configuration
#Backup courier-imap file configuration
#Backup openldap file configuration
#Backup cups file configuration
#Backup syslog-ng file configuration
#Backup PPPoE file configuration
#Backup file script
- สามารถเพิ่มเติมการ backup คอนฟิกได้
- สามารถกำหนดเวลา backup ได้ (crontab)
- สามารถ backup ไฟล์ไปเก็บไว้ที่เครื่อง Backup Server ได้ (เปลื่ยน IP address ที่ script)
- สนับสนุน Text mode และ GUI (GNOME, KDE)

Source script:

โค๊ด:
#!/bin/sh
#
# This script was modify by Sontaya Photibut.
# Source: M-Backup.
# Program Support: Graphical Mode and Text mode.
# Copyright (C) 2010  Sontaya Photibut <susethailand.com@gmail.com>
# How to using, Run shell script when configuration files is changed.

init() {

script_name="$0"
VERSION=1.0
OLD_PATH=`echo $PATH`
PATH=$PATH:/sbin:/usr/sbin
BACKUPDIR=/root/.Backup-Config
TEMP=$BACKUPDIR/mbackup.tmp
ans='n'

if [ ! -w /root ]
then
echo -e "\nPLEASE RUN THE SCRIPT AS ROOT\n"
exit 0
fi

if [ -d "$BACKUPDIR" ]
then
echo > /dev/null
else
mkdir "$BACKUPDIR"
fi

echo -e "\nInitializing Graphical Mode... Successful\n\nPress OK to continue.\n(Press 'Esc' and click 'OK' to enter text mode)" > $TEMP
dialog --title "WELCOME TO MBACKUP $VERSION" --backtitle "Author - Sontaya Photibut"  --exit-label "OK" --textbox "$TEMP" 19 72 2> /dev/null

if [ "$?" -eq 0 ]
then
gui_support=y
else
gui_support=n
clear
echo -e "\nInitializing Graphical Mode... Failed!!\nThis can even happen if you press Esc during initialization of graphical mode.\nThe program will run in text mode\n\n"
echo "Press Enter to continue...."
read
fi

}

exit_msg() {

if [ "$gui_support" = 'y' ]
then
dialog --clear --title "THANK YOU FOR USING THIS PROGRAM" --backtitle "Author - Sontaya Photibut" --msgbox "\n.Backup-Config $VERSION\nCopyright (C) 2010  Sontaya Photibut\nThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\nAuthor:-\nSontaya Photibut  <susethailand.com@gmail.com>\n" 15 62
clear
else
#clear
echo -e "\n\n\t\t   THANK YOU FOR USING THIS PROGRAM\n\n"
echo -e "\n.Backup-Config Version $VERSION\nCopyright (C) 2010  Sontaya Photibut\nThis is free software; see the source for copying conditions.\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\n\nAuthor:-\nSontaya Photibut  <susethailand.com@gmail.com>\n"

fi

}


quit() {

rm -f $TEMP
exit_msg
exit 0
}


main() {

if [ "$gui_support" = "y" ]
then
dialog --title "M-BACKUP $VERSION" --backtitle "Author - Sontaya Photibut" --yesno "This utility will take backup of some important files in your system. The output of this script will go to $BACKUPDIR. Are you ready?" 12 47

if [ "$?" = "0" ]
then
ans='y'
fi

else
clear
echo -e "Author - Sontaya Photibut\n\n\n\n\n"
echo -ne "This utility will take backup of some important files in your system.\nThe output of this script will go to $BACKUPDIR.\nAre you ready?(y/n)"
read ans
fi


case "$ans" in
[yY]*)

if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Checking and deleting older .Backup-Config archives" 7 72
else
echo -e "Checking and deleting older .Backup-Config archives..."
fi
test -e /root/oldmbackup.tar.gz.old && rm -f /root/oldmbackup.tar.gz.old



if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Checking and moving existing .Backup-Config archives" 7 72
else
echo -e "Checking and moving existing .Backup-Config archives..."
fi
test -e $BACKUPDIR/oldmbackup.tar.gz &&  mv  $BACKUPDIR/oldmbackup.tar.gz /root/oldmbackup.tar.gz.old


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Checking and renaming existing .Backup-Config archives" 7 72
else
echo -e "Checking and renaming existing .Backup-Config archives..."
fi
test -e /root/oldmbackup.tar.gz.old && rm -f /root/oldmbackup.tar.gz.old
test -e /root/oldmbackup.tar.gz && mv /root/oldmbackup.tar.gz /root/oldmbackup.tar.gz.old


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Archiving existing .Backup-Config files" 7 72
else
echo -e "Archiving existing .Backup-Config files..."
fi
if [ `ls -al $BACKUPDIR/ | wc -l` -gt 3 ]
then
tar -zcf /root/oldmbackup.tar.gz $BACKUPDIR/*
fi


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Removing existing .Backup-Config files" 7 72
else
echo -e "Removing existing .Backup-Config files..."
fi
rm -rf $BACKUPDIR/*


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Writing to log file $BACKUPDIR/backup-config.log" 7 72
else
echo -e "Writing to log file $BACKUPDIR/backup-config.log..."
fi
echo " " > $BACKUPDIR/backup-config.log
echo -e " ************************************************** " >> $BACKUPDIR/backup-config.log
echo -e '.Backup-Config by Manna!!' >> $BACKUPDIR/backup-config.log
echo -e "Version $VERSION" >> $BACKUPDIR/backup-config.log
echo -e "Author -- Sontaya Photibut" >> $BACKUPDIR/backup-config.log
echo -e "Copyright (C) 2010  Sontaya Photibut" >> $BACKUPDIR/backup-config.log
echo -e "This is free software; see the source for copying conditions." >> $BACKUPDIR/backup-config.log
echo -ne "Log file created on : " >> $BACKUPDIR/backup-config.log
date >> $BACKUPDIR/backup-config.log
echo " ***************************************************** " >> $BACKUPDIR/backup-config.log


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Moving the oldmbackup file to $BACKUPDIR/" 7 72
else
echo -e "Moving the oldmbackup file to $BACKUPDIR/..."
fi
mv /root/oldmbackup.tar.gz $BACKUPDIR/


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Retrieving Machine And System Information" 7 72
else
echo -e "Retrieving Machine And System Information..."
fi
if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Retrieving Machine And System Information ---> Kernel Version" 7 72
else
echo -e "Retrieving Machine And System Information ---> Kernel Version..."
fi
echo -en "   Kernel Version            : " >> $BACKUPDIR/backup-config.log
uname -r >> $BACKUPDIR/backup-config.log


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Retrieving Machine And System Information ---> Hostname" 7 72
else
echo -e "Retrieving Machine And System Information ---> Hostname..."
fi
echo -en "   Hostname                  : " >> $BACKUPDIR/backup-config.log
uname -n >> $BACKUPDIR/backup-config.log


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Retrieving Machine And System Information ---> OS" 7 72
else
echo -e "Retrieving Machine And System Information ---> OS..."
fi
echo -en "   System OS                 : " >> $BACKUPDIR/backup-config.log
uname -s >> $BACKUPDIR/backup-config.log


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Retrieving Machine And System Information ---> Release" 7 72
else
echo -e "Retrieving Machine And System Information ---> Release..."
fi
echo -en "   Release                   : " >> $BACKUPDIR/backup-config.log
for i in /etc/*[rv]e[lr][es][ai][so][en]
do
if [ -L "$i" ]
then
echo > /dev/null
else  
cat "$i"
fi
done 2> /dev/null | sed '/LSB/d' | head -n 1 >> $BACKUPDIR/backup-config.log
echo -e "Version Information" >> $BACKUPDIR/backup-config.log
cat /proc/version >> $BACKUPDIR/backup-config.log
echo -e "\n\n" >> $BACKUPDIR/backup-config.log

if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files" 7 72
else
echo -e "Backing up important system files..."
fi
echo -e "\nTaking backup of important information:-" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles && mkdir $BACKUPDIR/etcfiles
test ! -d $BACKUPDIR/varfiles && mkdir $BACKUPDIR/varfiles
test ! -d $BACKUPDIR/usrfiles && mkdir $BACKUPDIR/usrfiles

#Backup /etc/profile.d
if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- /etc/profile" 7 72
else
echo -e "Backing up important system files -- /etc/profile, /etc/init.d..."
fi
echo -e "/etc/profile" >> $BACKUPDIR/backup-config.log
cat /etc/profile >> $BACKUPDIR/etcfiles/profile
cat /etc/init.d/boot.local  >> $BACKUPDIR/etcfiles/init.d

#Backup /etc/*onf*
if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
else
echo -e "Backing up important system files -- configuration files..."
fi
echo -e "configuration files" >> $BACKUPDIR/backup-config.log
cp -r /etc/*onf* $BACKUPDIR/etcfiles

#Backup Samba file configuration
if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- Samba configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/samba && mkdir $BACKUPDIR/etcfiles/samba
                cp -r /etc/samba/*onf* $BACKUPDIR/etcfiles/samba

#Backup Apache2 file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- Apache2 configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/apache2 && mkdir $BACKUPDIR/etcfiles/apache2
                cp -r /etc/apache2/*onf* $BACKUPDIR/etcfiles/apache2

#Backup Squid file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- Squid configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/squid && mkdir $BACKUPDIR/etcfiles/squid
                cp -r /etc/squid/* $BACKUPDIR/etcfiles/squid

#Backup Postfix file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- Postfix configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/postfix && mkdir $BACKUPDIR/etcfiles/postfix
                cp -r /etc/postfix/*onf* $BACKUPDIR/etcfiles/postfix

#Backup DNS Server file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- DNS Server configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/named.d && mkdir $BACKUPDIR/etcfiles/named.d
test ! -d $BACKUPDIR/varfiles/named && mkdir $BACKUPDIR/varfiles/named
                cp -r /etc/named.d/*onf* $BACKUPDIR/etcfiles/named.d
                cp -r /var/lib/named/master/* $BACKUPDIR/varfiles/named

#Backup apcupsd file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- apcupsd configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/apcupsd && mkdir $BACKUPDIR/etcfiles/apcupsd
                cp -r /etc/apcupsd/*onf* $BACKUPDIR/etcfiles/apcupsd

#Backup MailScanner file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- MailScanner configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/MailScanner && mkdir $BACKUPDIR/etcfiles/MailScanner
                cp -r /etc/MailScanner/*onf* $BACKUPDIR/etcfiles/MailScanner

#Backup postgrey file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- postgrey configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/postgrey && mkdir $BACKUPDIR/etcfiles/postgrey
                cp -r /etc/postgrey/*onf* $BACKUPDIR/etcfiles/postgrey

#Backup dovecot file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- dovecot configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/dovecot && mkdir $BACKUPDIR/etcfiles/dovecot
                cp -r /etc/dovecot/*onf* $BACKUPDIR/etcfiles/dovecot

#Backup courier-imap file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- courier-imap configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/courier-imap && mkdir $BACKUPDIR/etcfiles/courier-imap
                cp -r /etc/courier-imap/* $BACKUPDIR/etcfiles/courier-imap


#Backup openldap file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- openldap configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/openldap && mkdir $BACKUPDIR/etcfiles/openldap
                cp -r /etc/openldap/*onf* $BACKUPDIR/etcfiles/openldap

#Backup cups file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- cups configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/cups && mkdir $BACKUPDIR/etcfiles/cups
                cp -r /etc/cups/*onf* $BACKUPDIR/etcfiles/cups

#Backup syslog-ng file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- syslog-ng configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/syslog-ng && mkdir $BACKUPDIR/etcfiles/syslog-ng
                cp -r /etc/syslog-ng/*onf* $BACKUPDIR/etcfiles/syslog-ng


#Backup PPPoE file configuration
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- PPPoE configuration files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/etcfiles/ppp && mkdir $BACKUPDIR/etcfiles/ppp
                cp -r /etc/ppp/*onf* $BACKUPDIR/etcfiles/ppp

#Backup file script
                if [ "$gui_support" = "y" ]
                then
                        dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system files -- configuration files" 7 72
                else
                        echo -e "Backing up important system files -- Script files..."
                fi
                echo -e "configuration files" >> $BACKUPDIR/backup-config.log
test ! -d $BACKUPDIR/usrfiles/bin && mkdir $BACKUPDIR/usrfiles/bin
                cp -r /usr/local/bin/* $BACKUPDIR/etcfiles/bin


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system information -- disk usage" 7 72
else
echo -e "Backing up important system information -- disk usage..."
fi
echo -e "output of df" >> $BACKUPDIR/backup-config.log
df -h >> $BACKUPDIR/df.output


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up important system information -- network" 7 72
else
echo -e "Backing up important system information -- network..."
fi
echo -e "output of ifconfig" >> $BACKUPDIR/backup-config.log
ifconfig >> $BACKUPDIR/ifconfig.output


if [ "$gui_support" = "y" ]
then
dialog --backtitle "Author - Sontaya Photibut" --title "Performing Requested Task, Please wait..." --infobox "Backing up some other files" 7 72
else
echo -e "Backing up some other files..."
fi
echo -e "\n\nTaking backup of some other information:-" >> $BACKUPDIR/backup-config.log


if [ "$gui_support" = 'y' ]
then
dialog --clear --title ".Backup-Config $VERSION" --backtitle "Author - Sontaya Photibut" --msgbox "\nBackup created in $BACKUPDIR\nFor a list of backed up files, see $BACKUPDIR/backup-config.log" 15 62

else

#---------------------------Sync .Backup-Config folder to Backup Server----------------------------#
       clear
         echo -e "Author - Sontaya Photibut\n\n\n\n\n"
       echo -ne "Sync .Backup-Config folder to Backup Server.\nAre you ready?(y/n)"
   read ans
/usr/bin/rsync --delete -azv /root/.Backup-Config -r 192.168.1.9:/backup2/backup-config/192.168.1.13/

#--------------------------------------------------------------------------------------------------#
clear
echo -e "\nBackup created in $BACKUPDIR\nFor a list of backed up files, see $BACKUPDIR/backup-config.log\n"

fi


;;

[nN]*)
quit
;;
*)
echo "Please ans yes or no"
;;
esac



}


######################################################################################################################
##############********************   EXECUTION OF THE SCRIPT STARTS HERE   ********************#######################
######################################################################################################################

trap "quit ; " 1 2 3 7 9 11 15
init

trap "quit ; " 1 2 3 7 9 11 15
main

quit

######################################################################################################################
###############********************   EXECUTION OF THE SCRIPT ENDS HERE   *********************#######################
######################################################################################################################

« แก้ไขครั้งสุดท้าย: ตุลาคม 25, 2011, 09:18:20 AM โดย Sontaya » แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า

ageLOC Technology
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป:  

(@)2007 SUSE Linux user community found in Thailand. This site is not an official openSUSE and SUSE website, and is not in any way affiliated with or endorsed by SUSE Linux GmbH or Novell. openSUSE and SUSE are trademarks of Novell, Inc. in the United States and other countries.
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
หน้านี้ถูกสร้างขึ้นภายในเวลา 0.049 วินาที กับ 18 คำสั่ง (Pretty URLs adds 0.012s, 2q)