update
This commit is contained in:
parent
ce8164d5c6
commit
c2e3900eb4
@ -4,6 +4,8 @@
|
|||||||
source_dir=$1
|
source_dir=$1
|
||||||
target_dir=$2
|
target_dir=$2
|
||||||
|
|
||||||
|
mkdir ${target_dir} -p || true
|
||||||
|
|
||||||
# 备份文件名和目录
|
# 备份文件名和目录
|
||||||
backup_date=$(date +%Y-%m-%d)
|
backup_date=$(date +%Y-%m-%d)
|
||||||
backup_dir="${target_dir}/backup_${backup_date}"
|
backup_dir="${target_dir}/backup_${backup_date}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user