rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: mike2003 on October 16, 2011, 02:57:25 PM

Title: Auto save VFS on change
Post by: mike2003 on October 16, 2011, 02:57:25 PM
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
Title: Re: Auto save VFS on change
Post by: Mars on October 17, 2011, 09:20:44 AM
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.}

Title: Re: Auto save VFS on change
Post by: mike2003 on October 17, 2011, 11:15:49 AM
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!
Title: Re: Auto save VFS on change
Post by: rejetto on October 17, 2011, 11:54:32 AM
yes, it is already so.
Maybe you have an old version. What exact version are you using?
Title: Re: Auto save VFS on change
Post by: mike2003 on October 17, 2011, 12:37:00 PM
i have 2.3 beta build 279
and it say "Check update: no new version"
where i can find that funstion?
Title: Re: Auto save VFS on change
Post by: mike2003 on October 19, 2011, 04:35:44 PM
anybody help me!
Title: Re: Auto save VFS on change
Post by: mike2003 on October 22, 2011, 07:46:40 AM
Quote
yes, it is already so.
up??????
Title: Re: Auto save VFS on change
Post by: rejetto on October 23, 2011, 11:40:00 AM
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.
Title: Re: Auto save VFS on change
Post by: mike2003 on October 23, 2011, 01:36:24 PM

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
Title: Re: Auto save VFS on change
Post by: rejetto on October 23, 2011, 06:53:12 PM
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?
Title: Re: Auto save VFS on change
Post by: mike2003 on October 23, 2011, 08:29:17 PM
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 )
Title: Re: Auto save VFS on change
Post by: rejetto on October 23, 2011, 08:36:29 PM
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.
Title: Re: Auto save VFS on change
Post by: mike2003 on October 24, 2011, 04:43:14 PM
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
Title: Re: Auto save VFS on change
Post by: rejetto on October 27, 2011, 08:27:35 PM
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?
Title: Re: Auto save VFS on change
Post by: mike2003 on October 28, 2011, 03:35:44 PM
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