initial
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
SAM=che
|
||||
SRC=~/svn/trunk/sam/che_close/
|
||||
TAR=~/www/sam/${SAM}_close/
|
||||
ALT=~/www/sam/${SAM}/
|
||||
|
||||
if [ -e $TAR ]
|
||||
then
|
||||
echo The server is closed. Location: $TAR
|
||||
rsync -av --delete --exclude=.* --exclude=logs --exclude=data --exclude=d_setting $SRC $TAR
|
||||
else
|
||||
echo The server is on service. Location: $ALT
|
||||
rsync -av --exclude=.* --exclude=logs --exclude=data --exclude=d_setting $SRC $ALT
|
||||
fi
|
||||
Reference in New Issue
Block a user