备份脚本指定文件问题
This commit is contained in:
parent
2e9fd6658d
commit
0bc2744a3d
@ -82,7 +82,7 @@ source "${path}/venv/bin/activate"
|
|||||||
for item in "$web_path"/*; do
|
for item in "$web_path"/*; do
|
||||||
declare item_name=\$(basename "\$item")
|
declare item_name=\$(basename "\$item")
|
||||||
cd "\$item" || exit
|
cd "\$item" || exit
|
||||||
tar -czf "\${item_name}_\${date_time}.tar.gz" $(ls)
|
tar -czf "\${item_name}_\${date_time}.tar.gz" "\$(ls)"
|
||||||
bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/"
|
bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/"
|
||||||
${path}/aliyunpan/aliyunpan upload "\${item_name}_\${date_time}.tar.gz" "/网站/\${item_name}/\${year}/"
|
${path}/aliyunpan/aliyunpan upload "\${item_name}_\${date_time}.tar.gz" "/网站/\${item_name}/\${year}/"
|
||||||
cp "\${item_name}_\${date_time}.tar.gz" "${web_path}/\${year}/"
|
cp "\${item_name}_\${date_time}.tar.gz" "${web_path}/\${year}/"
|
||||||
|
Loading…
Reference in New Issue
Block a user