˻
 Դϴ.
  • ϸũ

ũƮ Ư ο ϴ ü Ͽ Ϸ  ؾұ?6

־ ݾ ֽϴ.

ϰ ϴ ũƮ  crontab? Ʋ ѹ ϵ صξϴ.

#!/bin/sh

#Variables
NOW=$(date +"%Y%m%d")
BKDIR="/home/user"
SVDIR="/bakup"
FILE="$NOW.file.tar.gz"

echo $NOW

if [ -d $SVDIR/$NOW ]
then
  echo '$SVDIR/$NOW is'
else
  echo '$NOW Create!'
  mkdir $SVDIR/$NOW
fi

#DATA
echo "DATA Bakup Start"
tar zcf $SVDIR/$NOW/$FILE $BKDIR
echo "DATA Bakup End"



ٵ HDD 뷮 Ǿ ִ Ͱ .. HDD 뷮 ŵ..

׳ ִµ..

/bakup ȿ ϴ ؼ

7 ϰ ͽϴ. ( Ϸ ˴ϴ. )

ܼ if ϴ ͱ ϰڴµ..

ϴ ݺ... 𸣰ڽϴ.

Ȥ ƽô Ŵٸ ˷ֽø ϰڽϴ.

0
õϱ ٸǰ 0
|
ư
  Ϻ

ٸǰ 0 õ 0
2015-05-07
  1. ּҺ

ٸǰ 0 õ 0 byHERMES
2015-05-07
  1. ּҺ

ٸǰ 0 õ 0
2015-05-07
  1. ּҺ

ٸǰ 0 õ 0 byHERMES
2015-05-08
  1. ּҺ

ٸǰ 0 õ 0 ˻ѹ޴
2015-05-07
  1. ּҺ

ٸǰ 0 õ 0 byHERMES
2015-05-08
  1. ּҺ
  • ˸ 弳, ó ִ ﰡּ.
©  
Ϻ