Author Topic: Backup  (Read 43 times)

0 Members and 1 Guest are viewing this topic.

Offline Crami

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
« on: August 15, 2019, 09:07:57 PM »
Hi Guys,

first of all HFS is awesome!
I am currently looking for an option to secure all the data which is beeing uploded to my HFS System. I was searching for a while in the forum and didnt really find a way to do it.
Of course I have all the data on a Hard disk on my Computer, but for some reasons I need to secure it in case of a fire, robbery or anything like this. What I want, is a second Computer, which synchronizes itself automatically with my HFS System, so in case anything happens to the computer where my HFS system runs on, I have all that data on a second Computer.

And it is very important, that this synchronization happens automatically and regularly.
Is there anyone who has an idea how to do this?

Thank you very much for every advice!

Offline danny

  • Tireless poster
  • ****
  • Posts: 107
    • View Profile
    • Startfetch
Re: Backup
« Reply #1 on: August 16, 2019, 12:47:47 PM »
The following is the batch file (bakup.bat) from my backup server. 
There are 3 ordinary SMB1 shares on the main server.  And, those get synchronized to folders, at the backup server. 
Synchronizing provides no protection against deleted/damaged file, because that will be synchronized onto the backup. 
This example has been written to survive bad connections, because my own backup appliance tends to power-save its network card; and, likewise, this example will work over wifi too. 

@echo off
verify on
VER > nul
robocopy \\server\share1\ G:\folder1\ /e /copy:DT /xo /purge /w:0 /r:0
VER > nul
robocopy \\server\share2\ G:\folder2\ /e /copy:DT /xo /purge /nfl /w:0 /r:0
VER > nul
robocopy \\server\share3\ G:\folder3\ /e /copy:DT /xo /purge /nfl /w:0 /r:0

After that, I used Task Scheduler to make this a startup task,
then I set the Bios to automatically power on. 
The end of my batch file runs the shutdown command. 

Alternatively, it is possible to synchronize over FTP.
And, it is possible to synchronize from HFS:

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 861
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: Backup
« Reply #2 on: August 16, 2019, 04:40:58 PM »
Hfs set to save to ini file.

Hfs menu >save option >save to file

Put hfs In A folder share
Rmc(right mius click) folder directly > properties > sharing
Setup file share access

On other/backup pc, map network drive the hfs folder:

Use a file copy program, a cmd script or other Means to copy files from the Network location to you new pc for backup.

(I've done this with multiple file share folder maps for a company wide backup and have found filesync to be pretty awesome with schedule task option location and Network for a quick automated run every etc to copy what it can from a location. Hfs.exe might not be able to be copy (since it is running and In use) hence you save hfs setting to ini file that can be copy.)

« Last Edit: August 16, 2019, 04:43:48 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,