之前讨论类似问题时,按我掌握的知识比较可靠的是 snapraid 。但是这东西怎么是多个文件备份成单 1 文件,这点我是无法接受的,感觉单个文件出问题的机率大大的增加。要是能够切割或者 1 对 1 备份更好。
平时 windows 共享数据库备份到其它机器都是使用 SyncBackV3.2.26.0 。老版本免费版没什么限制用了好多年了。前提就是源文件根本不会出问题。
其它的就是 fastcopy 这种据说能校验文件校验值的程序,这东西不擅长。
所以一切的问题又变成如何校验硬盘或者文件损坏,之前想过一些烂方法向空白硬盘复制拷贝同样的文件占满硬盘,通过校验文件 md5 之来确定硬盘的不同区域是否有问题。之后出现了 snapraid 似乎这些问题更智能化解决了,可是备份成一个单 1 的大文件不可接受。平时用 SyncBack 这么多年似乎也一直没问题。。。
multicopy 4 test.txt #将 test.txt 复制 4 份
multicopy.cmd
@
echo off
echo.
if NOT "%2"=="" goto next1
echo %0 will make the specified number of copies of a file to (by default) the current folder
echo The copies will have '(Copy n) ' added at the beginning of the filename, where 'n' is the count
echo .
echo Useage: %0 copies source_file [destination folder]
echo example: %0 10 test.txt C:\temp
goto end
:next1
if EXIST ".\%2" goto next2
echo file %2 not found
goto end
:next2
set count=%1
set destination=%3
if "%3"=="" set destination=.
:repeat
@
echo on
::copy %2 "%destination%\(Copy %count%) %2"
copy %2 "%destination%\%2_%count%"
@
echo off
::pause
set /a count=%count%-1
if %count% LEQ 0 echo Requested number of copies (%1) have been made.
if %count% LEQ 0 goto end
goto repeat
:end