Use chsrc_backup()

This commit is contained in:
Aoran Zeng
2023-09-26 23:02:12 +08:00
parent dc101733d6
commit 5cb16f9baf
2 changed files with 40 additions and 103 deletions

View File

@@ -315,6 +315,14 @@ chsrc_overwrite_file (const char* str, const char* file)
chsrc_run(cmd);
}
static void
chsrc_backup (const char* path)
{
char* cmd = xy_strjoin(5, "cp ", path, " ", path, ".bak --backup='t'");
chsrc_info ( xy_strjoin (3, "备份文件名 ", path, ".bak"));
chsrc_run (cmd);
}
/* Target Info */