This is what I was exactly looking for. I have decided to partition my SSD in the file server PC. That all the Partition in that drive will be shared through the Network.
I will install a Hard Disk in the 2nd PC.
You said that new files on that drive is copied to other two drives.
How to do it automatically?
Will it only copy new files or even modification in existing files?
What if a file is opened and being used when this 15 minute sync is happening?
For now I have decided not to use cloud as it is a monthly sub. So, I will have a backup in 2nd PC Hard Drive and will buy an external Hard drive and back up it weekly. And by the end of this year, as
@USAFRet suggested I will install a NAS which would be better idea. I decided to buy WD Blue 7200RPM HDD and Seagate Backup Plus External HDD. Would they do my job?
And also to achieve this 15 min periodic sync, should I need to use any special software? If there are 100 files and within that 15 minutes I didn't add any new files but just modified few files will the modification reflect?
Thank You for your help.
I use a batch file and just xcopy with the switches /f/r/e/s/h/k/y/d/c/v. So the batch file starts automatically when the system boots and it waits for all the usb drives to come online and then copies newer files from the source to the other two. This is my batch file:
Code:
ECHO OFF
REM WAIT FOR DRIVES TO ATTACH AT FIRST STARTUP
PING 127.0.0.1 -n 90 > NUL
:START
IF EXIST COPYERR.LOG DEL COPYERR.LOG
XCOPY E:\ F:\ /F/R/E/S/H/K/Y/D/C/V
IF ERRORLEVEL 1 ECHO F-ERROR >> COPYERR.LOG
XCOPY E:\ G:\ /F/R/E/S/H/K/Y/D/C/V
IF ERRORLEVEL 1 ECHO G-ERROR >> COPYERR.LOG
PING 127.0.0.1 -n 1000 > NUL
GOTO START
This batch file loops infinitely.
It copies new and modified files, and if a file is moved from one location to another, it is considered new and is copied again to the new place (the old one is not deleted). If you want more of 'sync' operation where all the drives are
exactly the same then I would use robocopy instead. I actually have a different batch file that uses robocopy to sync files to 4x nas units, one across the country in another state. But this script runs only nightly due to how many hours it takes to execute.
If a file is open, it is usually not copied since the system will 'lock' access to it since another user has it open. It is usually not a problem since we don't keep files open overnight, so they will be copied at some point in the day. And you could adjust the 15 minutes to whatever you want. The 1000 in the second to last line in the batch file is 1000 seconds (and technically 16.67 minutes), and you can change that to any number of seconds you want.
If you are planning to buy an external drive for backup and since your data set is small, I would highly recommend an external ssd. Drives are delicate and one drop and render them useless which is a likely scenario if a drive is being shuffled weekly. I would also buy 2x drives, keeping one off site and just swapping them weekly. You can even integrate these into the 15 minute backups so that you literally just have to swap drives each week.
I would not invest in a new NAS. Today's NAS units are overly complex machines that are basically computers--so now there's another device to worry about getting hacked. Better to either just keep a computer dedicated for simple file serving or find an older nas that did not have to be connected to the outside world or try to always be connected to the Internet. I have older nas units like that, specifically the Intel ss4200-e, WD My Cloud EX2 (not ultra), and Netgear ReadyNas Ultra 6 (not 6 plus). These units are limited to smaller drive sizes (not a problem for you), and also cannot saturate a gigabit network link (also probably not a problem for you). But they are perfect for reliable, no nonsense storage appliances with some redundancy built-in. They're also cheap as any of these you can get for under $100 (but it will take some searching). I also have a synology unit and it's a completely different animal as I feel like I'm 'logging in' to a computer and sometimes wonder what the hell it is transferring over the network when I'm not using it. (None of my simple nas units have me guessing like this.) But in your use case, a dedicated storage appliance doesn't make sense when you're using a PC to do the same job which doesn't have drive size limitations or performance limitations.
As far as drives, if your data matters only get top tier enterprise storage--WD Gold, HGST, Seagate Exos--basically any drive that is 7200rpm, comes with a 5 year warranty and a 2.5M MTBF spec. These are top tier enterprise drives. They are usually much more expensive, but their reliability is second to none.
The batch file basically just runs the xcopy command every 15 minutes. It would be no different than if you were running the command manually. And this is just the
start of the command--this is not how long a copy may take. It takes time to scan every single file for a chance and then copy it. By the time this process is done, it's probably been at least 30 minutes--even longer if there was a lot of data copied.