项目作者: shylinux
项目描述 :
backup & restore important file 用于文件的备份与恢复
高级语言: Go
项目地址: git://github.com/shylinux/back.git
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
- -save
copy new(+) and newer(>) files from srcpath to dstpath - -backup
copy all(+ > <) files from srcpath to dstpath - -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