#!/bin/bash
basedir=/data/backup
www_src=$basedir/www_src/$(date +%F_%H%M)
[ ! -d "$www_src" ] && mkdir -p $www_src
cd /data
tar -jpcf $www_src/www.tar.bz2 www
basedir=/data/backup
www_src=$basedir/www_src/$(date +%F_%H%M)
[ ! -d "$www_src" ] && mkdir -p $www_src
cd /data
tar -jpcf $www_src/www.tar.bz2 www
2018-06-15