add zip -r
This commit is contained in:
@@ -140,7 +140,7 @@ fn process_config_item(options: &Options, config_item: &OSSBackupdConfigItem,
|
|||||||
#[cfg(feature = "use_zip")]
|
#[cfg(feature = "use_zip")]
|
||||||
let zip_file = || {
|
let zip_file = || {
|
||||||
let mut cmd = std::process::Command::new("zip");
|
let mut cmd = std::process::Command::new("zip");
|
||||||
cmd.args(&[temp_zip_file, target]);
|
cmd.args(&["-r", temp_zip_file, target]);
|
||||||
if let Err(e) = rust_util::util_cmd::run_command_and_wait(&mut cmd) {
|
if let Err(e) = rust_util::util_cmd::run_command_and_wait(&mut cmd) {
|
||||||
print_message(MessageType::ERROR, &format!("Error in zip file: {}, at item index: {}", e, item_index));
|
print_message(MessageType::ERROR, &format!("Error in zip file: {}, at item index: {}", e, item_index));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user