项目作者: shylinux

项目描述 :
backup & restore important file 用于文件的备份与恢复
高级语言: Go
项目地址: git://github.com/shylinux/back.git
创建时间: 2017-06-30T03:25:01Z
项目社区:https://github.com/shylinux/back

开源协议:MIT License

下载


back

backup & restore important file 用于文件的备份与恢复

there are five kinds file when backup or restore files:

  • + new file only in srcpath
  • > newer file in srcpath than in dstpath
  • = same file between srcpath & dstpath
  • < older file in srcpath than in dstpath
  • - old file only in dstpath

usage: back [options] srcpath dstpath

  1. -save
    copy new(+) and newer(>) files from srcpath to dstpath
  2. -backup
    copy all(+ > <) files from srcpath to dstpath
  3. -same
    copy all(+ > <) files from srcpath to dstpath, move old(-) files from dstpath to dstpath/trash
  • -time compare files only by time stamp, don’t use hash
  • -force copy or move files without confirm
  • -help show help