Monday 18 August 2014

Create Self Extracting (exe) 7-zip file

Create Self Extracting (exe) 7-zip file

The application 7-zip is a freeware solution for creating EXE file form any types of file(s).  

Download and install 7-Zip File Archiver for Windows Operating System.


Open “7-Zip file manager” from start menu à Select file(s) which you want to add in archive file à Click on “Add” button à Enter your desired archive file name (Ex- test), Browse path for where you want to save the archive file, and Check the Option “Create SFX archive”  à Press on “OK” to create 7-Zip Self Extract (exe) file.


Enjoy!

Friday 8 August 2014

Backup Script

Daily Backup Script

#!/bin/bash
#
# Daily Backup Script
#

USER=Ajay
IP=192.168.30.5
MONTH=July
YEAR=2011

set $(date)

#### Backup Directory Path ####
BDP=/devbackups/$USER/Daily_Backup/$MONTH-$YEAR/Daily-$3-$2-$6
mkdir -p $BDP

#### Deleting temporary massage file ####
/bin/rm -f /tmp/$USER.txt

#### Desktop Directory Backup ####
if scp -r $IP:/Local_Backup/Daily-$3-$2-$6/Desktop-$3-$2-$6.tar.bz2     /$BDP  >&/dev/null ;

then
        echo "DESKTOP Backup file is found and Backup send to the Fileserver.  Its size is $(du -sh $BDP/D* | cut -d "/" -f 1) " >> /tmp/$USER.txt

else
        echo "DESKTOP Backup file is NOT found and Backup has not done. " >> /tmp/$USER.txt

fi


#### Work Directory Backup ####
if scp -r $IP:/Local_Backup/Daily-$3-$2-$6/WORK_AJAY-$3-$2-$6.tar.bz2   /$BDP  >&/dev/null ;

then
        echo "WORK Directory Bakup file is found and Send to the fileserver . Its size is $(du -sh $BDP/W* | cut -d "/" -f 1)" >> /tmp/$USER.txt

else
        echo "WORK Directory Backup file is NOT found that's Backup has not done" >> /tmp/$USER.txt

fi


#### Mailing Backup Report ####
/bin/mail -s "$USER's Backup Status" sysadmin@dev.tbmtechnologies.com < /tmp/$USER.txt ;


#### Shutting Down the System ####

ssh $IP '/sbin/shutdown -h 2'

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...