backup one file ( v2 )
#!/bin/bash
if [ -z "$1" ]
then
echo "No argument supplied"
exit
fi
FULLPATH=$(/usr/bin/readlink -f $1)
BASENAME1=$(/bin/basename $FULLPATH )
MYPATH=$(/usr/bin/dirname $FULLPATH)
backupdir="$MYPATH/backupdir"
mydate=$(date +"%m-%d-%y-%N")
if [ ! -d "$backupdir" ]; then
mkdir $backupdir
fi
cp $MYPATH/$BASENAME1 $backupdir/$BASENAME1-$mydate
echo " copied to $backupdir/$BASENAME1-$mydate"
back up file for a single file
#!/bin/bash
if [ -z "$1" ]
then
echo "No argument supplied"
exit
fi
BASENAME1=$(/bin/basename $1)
MYPATH1=$(/bin/pwd)
backupdir="$MYPATH1/backupdir"
mydate=$(date +"%m-%d-%y-%N")
if [ ! -d "$backupdir" ]; then
mkdir $backupdir
fi
cp $MYPATH1/$BASENAME1 $backupdir/$BASENAME1-$mydate
installing nginx
http://nginx.org/packages/centos/5/SRPMS/
install pcre
install nginx
nginx version: nginx/1.2.3
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
TLS SNI support disabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin --pid-path=/var/lock/nginx --error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log --user=nginx --group=nginx --with-pcre=/opt/pcre-8.31/ --with-mail --with-mail_ssl_module
--with-http_stub_status_module --with-http_perl_module
install pcre
install nginx
nginx version: nginx/1.2.3
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
TLS SNI support disabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin --pid-path=/var/lock/nginx --error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log --user=nginx --group=nginx --with-pcre=/opt/pcre-8.31/ --with-mail --with-mail_ssl_module
--with-http_stub_status_module --with-http_perl_module
auto scroll to the bottom of the div or textarea
$jq('#divWithOverflowAuto').animate({ scrollTop: 999999999 } ); }
Subscribe to:
Posts (Atom)