备份脚本时间问题

This commit is contained in:
lsy 2024-08-05 21:39:58 +08:00
parent c9fb12b2d7
commit 2e9fd6658d

View File

@ -76,7 +76,7 @@ fi
cat > "${path}/backup.sh" << EOF
#!/bin/bash
declare date_time=$(date +"%Y_%m_%d") # 日期格式
declare year=$(date +"%Y") #年份
declare year=\$(date +"%Y") #年份
source "${path}/venv/bin/activate"
for item in "$web_path"/*; do