rejetto forum

Why file system cleared?

0 Members and 1 Guest are viewing this topic.

Offline alexfmos

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
Server work many years. Today i found clean file system (more precisely, there was one file instead of many). I have backup, but what happened? In log i don't found anything

Offline vladimirov70

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
    • Honest news about a special military operation in Ukraine.
I had a similar situation at the end of May. Perhaps this is a hacker attack. In my case, a complex virtual file system was damaged. Failed to restore. Now I'm switching to real folders in HFS, it's more reliable.
« Last Edit: June 19, 2021, 08:05:20 PM by Mars »
Ukraine has been killing thousands civilians in Donbass for eight years. Ukraine killed 152 children and wounded 146. Russia does not start wars - it ends them.

Offline D

  • Occasional poster
  • *
    • Posts: 22
    • View Profile
Same, and my backup got overwritten by autosave :(

Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 788
  • Status: On hiatus (sporadically here)
    • View Profile
To having a clue of why this happens, it would be nice if you comment this info (useful in any bug/error/issue report):
- What HFS version are you using?
- What Operating System are you using?
- Do you have any Antivirus or File Cleaners that could delete .vfs files?

Same, and my backup got overwritten by autosave :(
This gives me an idea, that HFS could have 'by-default' a daily backup, based on date (with a configurable option to set how many days would you like to keep a VFS backup), with file name using this scheme:
Code: [Select]
(Where '20211004' is today 2021-10-04)
By having that option, if something goes wrong, you could manually restore a backup from some days ago.

Offline danny

  • Tireless poster
  • ****
    • Posts: 281
    • View Profile
In addition to Leo's good backup idea...

You could try the WatchCat script. 
If you hfs menu > save settings > to file
then the watchcat script will backup and then roll back to working settings if an error occurs while HFS is running
see that copy command (one in startup for backup and one in error for rollback) and notice that it could be expanded to first back up the vfs and then utilize the backup on the fly if errors occurred. 

Those features of the watchcat2 script are for the purpose of 'locking down' working condition.  So, you'd first get HFS running as you like. . . and afterwards start up the watchcat script to make HFS stay put. 

For example (watchcat edited to include vfs backup and restore):
Code: [Select]
@echo off
copy hfs.ini hfsini.bak /y
copy myvfs.vfs myvfs.bak /y
@echo       /\     /\
@echo      {  '''''  }
@echo     _{_ O   O _}_
@echo WatchCat is now running
timeout /t 30 > nul
VER > nul
wget --output-document=nul --quiet --wait=10 --tries=3
@echo !
@echo HFS did not respond.
@echo Exiting...
date /T
time /T
TASKKILL /IM hfs.exe /F > nul
timeout /t 3 > nul
@echo ------------------------
copy myvfs.bak myvfs.vfs /y >nul
copy hfsini.bak hfs.ini /y > nul
timeout /t 2 > nul
@echo Starting HFS
start "" "hfs.exe" -c start-minimized=yes -c active=yes
if not port 80, be sure to put the actual port number
if not myvfs.vfs, be sure to use the actual file name
wget is in the zip file:

« Last Edit: October 08, 2021, 05:24:36 PM by danny »