Skip to content

xue-blood/FileBackup

Repository files navigation

FileBackup

FileBackup tool, customing by commandline

Usage

  • Edit restore.cmd and backup.cmd as you need

    • --from the dir you want to copy file from
    • --to File will copy to this dir
    • --include file name need include patten, allow multiply
    • --exclude file name must not contain patten, allow multiply
    • --remove remove patten in file name, allow multiplay
    • --rename rename file name, usefull for delete empty dir, support character \- or string org:new replace allow multiplay
    • --debug debug flag to show message
    • --replace replace the exisit file in target dir
    • --split split all file in piece 1/5 as div in 5, and 100 as 100 per piece
    • --split_format custom out dir format, default _{p}, eg out_0
      • {count} or {c} current file index
      • {piece} or {p} current file piece
      • {start} or {s} current piece start index
      • {end} or {e} current piece end index
      • {total} or {t} total file count
  • Drag folder which you want to backup to backup.cmd

  • Drag folder which you want to restore to restore.cmd

使用方法

  • 编辑 restore.cmdbackup.cmd 两个文件

    • --from 程序从该目录复制文件
    • --to 程序复制文件的目录路径
    • --include 文件名需要包含的内容, 可以指定多个
    • --exclude 文件名不能包含的内容, 可以指定多个
    • --remove 移除指定字符串, 可以指定多个
    • --rename 重命令文件, 支持单个字符 \- 和多个字符 org:new 可以指定多个
    • --debug 调试开关
    • --replace 替换目标路径中己有的文件
    • --split 分隔文件 1/5 把文件分成5份, and 100 每份100个
    • --split_format 分隔路径格式, 默认 _{p}, 比如 out_0
      • {count} or {c} 当前文件个数
      • {piece} or {p} 当前文件块数
      • {start} or {s} 当前块的起始个数
      • {end} or {e} 当前块的结束个数
      • {total} or {t} 总文件数
  • 拖拽要备份的文件夹到 backup.cmd

  • 拖拽要恢复的文件夹到 restore.cmd

About

FileBackup tool, customing by commandline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published