rejetto forum

Auto save VFS on change

0 Members and 1 Guest are viewing this topic.

Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
i made change in vfs not often, but it very important to me )
today HFS 2 options for save
1 save on exit
2 save every ** minutes

1 i must EXIT form HFS, i dont want exit or cant exit some time
2 - make save in VFS file, but do useless work most time
(some times my server was reseted and all vfs cleared! loose all vfs. i think save+reset in same time do that)

i think save VFS in file when it chaged very usefull!
without extra load on the HDD, but all changes are in safe at once!!!

PS
without worry about hand-save


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 1968
    • View Profile
Quote
1 save on exit
2 save every ** minutes
They are the command to save the options in hfs.ini or in the registry

Concerning the vfs, there are two possibilities:

Menu >> Virtual File System >> Auto-Save Every: x mn

or with a macra {.save cfg|p.]
with 'p' is one of  'file', 'registry', 'global registry'   (without quote)

You can also use the macro (not documented)  in version 2.3:  {.save vfs.} or {.save vfs|name_of_file.}

Usage in hfs.event:

[every 15 minutes]
{.save vfs.}
{.save cfg|registry.}

« Last Edit: October 17, 2011, 01:06:02 PM by Mars »


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
sorry
but i am not understand how it can help me

HFS already can save VFS auto when it change?

my "auto save every..." already on, but VFS was cleared! i think server reset and save function was in same time
its not safe metod!
« Last Edit: October 17, 2011, 11:23:40 AM by mike2003 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13159
    • View Profile
yes, it is already so.
Maybe you have an old version. What exact version are you using?


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
i have 2.3 beta build 279
and it say "Check update: no new version"
where i can find that funstion?



Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13159
    • View Profile
sorry, i was wrong. I was thinking of the options.
The auto-saving feature for options works "on change".
The same for VFS instead is based on a timer.
About "save on exit", if you want to save without quitting, just click "save file system".
About the timed saving, what if you save every 6 hours? It should not be a noticeable load on your hard disk.


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile

Quote
just click "save file system".
i think about "save without click"

time to time i need drop some files then drop another files, then delete some old files, add new and etc
every time i must go to big HFS menu... that make me crazy )
i realy love ergonomics - the important functions must be in 1 click
now save function needed 3 mouse clicks! very bad for recently features

Quote
About the timed saving, what if you save every 6 hours? It should not be a noticeable load on your hard disk.
as I said above i have autosave every 1 h, but this was the cause of the loss of all information on power down!!!

and I'm worried about a useless burden on the disk
most of the time there is no change, requiring to save!

PS
i cant understand but when i press ctrl+s HFS open "save dialog" every time
and for menu too
i already give HFS file name! for what it asked again???
i think that is bug?
all other soft dont do that!

pss
sorry for english


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13159
    • View Profile
time to time i need drop some files then drop another files, then delete some old files, add new and etc
every time i must go to big HFS menu... that make me crazy )

on the bottom "status bar" you get a "not saved". If you double click it, it's like clicking "save file system".

Quote
i realy love ergonomics - the important functions must be in 1 click

i agree, but people has different needs. Some people never change the file system.

Quote
as I said above i have autosave every 1 h, but this was the cause of the loss of all information on power down!!!

that's a mistery i never understood.
many people lost data because of timed saving.
that's why i removed it for the options.

Quote
and I'm worried about a useless burden on the disk most of the time there is no change, requiring to save!

saving every 6 hours cannot be considered a sensible burden. Can it?

Quote
i cant understand but when i press ctrl+s HFS open "save dialog" every time
and for menu too
i already give HFS file name! for what it asked again???
i think that is bug?
all other soft dont do that!

it's not a bug.
Long ago i decided to not have "save" and "save as" to keep the menu shorter.
So what you actually have there is a "save as". There's no "as" but you can tell it by the "..." in the end. That's a standard for "dialogs will come".
I can't say how is best to go. You are the first one in 9 years complaining about this, so i don't know if it's worth adding another item in the menu.
A very easy solution could be having a different keyboard shortcut for the immediate save. But then they should be informed about this possibility. In the save dialog title perhaps?
« Last Edit: October 23, 2011, 06:55:25 PM by rejetto »


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
ok
but I can not understand the usefulness of functions "save every **"
Logic tells me:
on time event if VFS changed=1 then Save
if changed=0 then nosave
)))
for what ever make a save, even if no changes in VFS?? what data it must be stored???

I see this is hole in security, useless operation, which can lead to data loss in some case

Quote
If you double click it, it's like clicking "save file system".
and in that place dialog appears! ((((
and again I do not see any logic in that - simply unnecessary data request

i reale-realy like optimization )


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13159
    • View Profile
for what ever make a save, even if no changes in VFS?? what data it must be stored???

currently the number of downloads/click is stored in the VFS.
so its content changes even if you do nothing, but your users browse your site.

Quote
and again I do not see any logic in that - simply unnecessary data request

yes, that was just a shorcut, not going to solve your problem with the dialog. That was answered after.


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
ok

but if i have "backup on save" and "autosave every **" ON
How could I lose all VFS?
after power down no original and no backup files!!
at this point something is wrong


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13159
    • View Profile
i'm ashamed but i fought this problem long and i couldn't work it out.
i wish someone could help me with it, since the project is open source.
sadly it is not easy to reproduce the problem, for testing purposes.

didn't you find any backup file?


Offline mike2003

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
no
after next reload i found that VFS is empty
i checked backup option and it is ON
i try find original VFS file and backup - but no
in recent files of HFS i click on my file, but such file isn't present