[from now] 2013/03/21 01:13:55

diff --git a/RHEL/CONCURRENT_BACKUP/2003-02.tgz b/RHEL/CONCURRENT_BACKUP/2003-02.tgz
new file mode 100644
index 0000000..98f3956
Binary files /dev/null and b/RHEL/CONCURRENT_BACKUP/2003-02.tgz differ
diff --git a/RHEL/CONCURRENT_BACKUP/2011-08.tgz b/RHEL/CONCURRENT_BACKUP/2011-08.tgz
new file mode 100644
index 0000000..a3a740a
Binary files /dev/null and b/RHEL/CONCURRENT_BACKUP/2011-08.tgz differ
diff --git a/RHEL/CONCURRENT_BACKUP/2011-10.tgz b/RHEL/CONCURRENT_BACKUP/2011-10.tgz
new file mode 100644
index 0000000..e422c32
Binary files /dev/null and b/RHEL/CONCURRENT_BACKUP/2011-10.tgz differ
diff --git a/RHEL/CONCURRENT_BACKUP/2011-11.tgz b/RHEL/CONCURRENT_BACKUP/2011-11.tgz
new file mode 100644
index 0000000..ab0f49e
Binary files /dev/null and b/RHEL/CONCURRENT_BACKUP/2011-11.tgz differ
diff --git a/RHEL/concurrent-log-move.sh b/RHEL/concurrent-log-move.sh
new file mode 100755
index 0000000..a512e3a
--- /dev/null
+++ b/RHEL/concurrent-log-move.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Concurrent log directory
+CONC_LOG_DIR=$HOME/bin/scripts/RHEL
+# Concurrent log moved directory
+BACK_DIR=${CONC_LOG_DIR}/CONCURRENT_BACKUP
+[[ ! -d ${BACK_DIR} ]] && mkdir -p ${BACK_DIR}
+
+# Days that log left
+LEFT_DAYS=4
+
+# move old log
+cd ${CONC_LOG_DIR}
+#find . -type f -maxdepth 1 -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} mv -v {} ${BACK_DIR}
+find . -type f -maxdepth 1 -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} cp -pv {} ${BACK_DIR}
+
+# divide Concurrent log at file timestamp
+cd ${BACK_DIR}
+ls -lF --time-style='+%Y-%m' | grep -vE "tgz$|\/" | awk '
+NR > 1 {
+    date_dir = $6
+    file = $7
+    system("[[ ! -d " date_dir " ]] && mkdir -p " date_dir)
+    system("mv -v " file " " date_dir)
+}
+'
+
+# tar compress
+for dir in $(ls -F | grep /)
+do
+    tar zcvf ${dir%\/}.tgz ${dir%\/}
+    rm -rf ${dir}
+done
+
diff --git a/RHEL/test b/RHEL/test
new file mode 100644
index 0000000..e69de29
diff --git a/RHEL/test1 b/RHEL/test1
new file mode 100644
index 0000000..e69de29
diff --git a/RHEL/test2 b/RHEL/test2
new file mode 100644
index 0000000..e69de29
diff --git a/RHEL/test3 b/RHEL/test3
new file mode 100644
index 0000000..e69de29
diff --git a/RHEL/test4 b/RHEL/test4
new file mode 100644
index 0000000..e69de29
diff --git a/RHEL/tmp/concurrent-log-move.sh b/RHEL/tmp/concurrent-log-move.sh
new file mode 100644
index 0000000..3ffbd7e
--- /dev/null
+++ b/RHEL/tmp/concurrent-log-move.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Concurrent log directory
+CONC_LOG_DIR=$HOME/bin/scripts/RHEL
+# Time that log left
+LEFT_TIME=400
+
+# move old log
+cd ${CONC_LOG_DIR}
+find . -type f -mtime +${LEFT_TIME}
+
+
diff --git a/RHEL/tmp/test b/RHEL/tmp/test
new file mode 100644
index 0000000..e69de29