Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #94138

Re: Close Firefox before backing up my Profile.

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-10
Subject Re: Close Firefox before backing up my Profile.
Date 2019-07-06 21:53 -0400
Organization A noiseless patient Spider
Message-ID <qfrja3$k26$1@dont-email.me> (permalink)
References (2 earlier) <qfqdr8$ao4$1@gioia.aioe.org> <qfqhvv$7d6$1@dont-email.me> <goc1rjFrlb6U1@mid.individual.net> <qfqlt6$to4$1@dont-email.me> <qfrh91$baf$1@dont-email.me>

Show all headers | View raw


T wrote:
> On 7/6/19 10:31 AM, Paul wrote:
>> Andy Burns wrote:
>>> Paul wrote:
>>>
>>>> Applications which are "VSS aware" work perfectly fine.
>>>
>>> sqlite is blissfully unaware of VSS, so you'll get 'crash consistent' 
>>> copies taken while the db file is open, not sure why the backup would 
>>> think it needed to wait?
>>
>> VSS manages a certain phase of the backup.
>>
>> 1) Request comes into VSS - "Make a shadow of C: please"
>> 2) VSS sends command to running applications to quiesce.
>> 3) Waits ten seconds for compliance.
>> 4) Anything not answering, doesn't get backed up properly.
>> 5) Results may be reflected in VSS status interface.
>>
>> https://www.sqlite.org/howtocorrupt.html
>>
>>    "Backup or restore while a transaction is active
>>
>>     Systems that run automatic backups in the background might
>>     try to make a backup copy of an SQLite database file while
>>     it is in the middle of a transaction. The backup copy then
>>     might contain some old and some new content, and thus be corrupt.
>>
>>     The best approach to make reliable backup copies of an
>>     SQLite database is to make use of the backup API
>>     that is part of the SQLite library."
>>
>> https://www.sqlite.org/backup.html
>>
>> My guess would be, Firefox would need to intercept a VSS
>> request, and convert it into a Backup API sequence.
>> Or something.
>>
>>     Paul
> 
> Hi Paul,
> 
> I am thinking a this point the best approach is a
> pre-event script:
> 
>     Taskkill /IM firefox.exe
>     wait five seconds
>     Taskkill /IM firefox.exe /F
> 
> and thuderbird and chrome and quickbooks, etc..
> 
> Thank you for the education.  You are an excellent teacher.
> I did not realize that VSS had such limitations.
> 
> -T

VSS is, in a sense, a "cooperative" system. It delivers
a hint to your program. If you listen and behave in a
certain way, your "goods" get properly backed up.

No home programmer puts a VSS handler in their
code, because if a home programmer makes a program,
they probably "exit" before doing their backup.

With "scheduled" backups, I suppose it could be
different, because the human may not be present
for "cleanup".

Databases (especially the standalone big ones) are
inherently difficult customers to deal with. It's
never going to go well with them. But the way that
Firefox uses sqlite, has possibilities. Firefox is
not a five-nines server. It can afford to shut off
the databases, flush them, for short intervals. And
it should be possible to make it play nice. Once the
shadow copy is made, of a snapshot-in-time, the
backup program then can back up the shadow "snapshot"
at its leisure. That's the beauty of the ten second
interval. Be quiet for ten seconds, close the file,
"Click" goes the snapshot, now open your file again
and continue on. Once VSS makes the snapshot, that's
the limit of the intrusion.

Thunderbird is more problematic, in that seemingly
random stuff happens in there. There is less "order"
in a Thunderbird universe, at least to my
"observer eye". The more modern the version of
Thunderbird, the more wacky the behavior. I could
well imagine Thunderbird lighting up some sqlites
in the middle of a VSS call. Just because it has
no internal synchronization primitives. If you
ever watch the random order of the newsgroups it
works on, you'll get the idea.

    Paul

Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

places.sqlite read time out T <T@invalid.invalid> - 2019-07-06 01:32 -0700
  Close Firefox before backing up my Profile. Jeff-Relf.Me  @.@ - 2019-07-06 07:02 -0700
    Re: Close Firefox before backing up my Profile. Keith Nuttle <Keith_Nuttle@sbcglobal.net> - 2019-07-06 11:13 -0400
      Re: Close Firefox before backing up my Profile. Paul <nospam@needed.invalid> - 2019-07-06 12:24 -0400
        Re: Close Firefox before backing up my Profile. Andy Burns <usenet@andyburns.uk> - 2019-07-06 17:51 +0100
          Re: Close Firefox before backing up my Profile. Paul <nospam@needed.invalid> - 2019-07-06 13:31 -0400
            Re: Close Firefox before backing up my Profile. T <T@invalid.invalid> - 2019-07-06 18:18 -0700
              Re: Close Firefox before backing up my Profile. Paul <nospam@needed.invalid> - 2019-07-06 21:53 -0400
            Re: Close Firefox before backing up my Profile. Andy Burns <usenet@andyburns.uk> - 2019-07-07 09:58 +0100
              Re: Close Firefox before backing up my Profile. Paul <nospam@needed.invalid> - 2019-07-07 11:29 -0400
          Re: Close Firefox before backing up my Profile. T <T@invalid.invalid> - 2019-07-06 18:14 -0700
      Re: Close Firefox before backing up my Profile. Frank Slootweg <this@ddress.is.invalid> - 2019-07-06 17:36 +0000
        Re: Close Firefox before backing up my Profile. Keith Nuttle <Keith_Nuttle@sbcglobal.net> - 2019-07-07 06:48 -0400
          Re: Close Firefox before backing up my Profile. Frank Slootweg <this@ddress.is.invalid> - 2019-07-07 14:01 +0000
    Re: Close Firefox before backing up my Profile. T <T@invalid.invalid> - 2019-07-06 18:12 -0700
      Re: Close Firefox before backing up my Profile. Paul <nospam@needed.invalid> - 2019-07-06 21:55 -0400
        Re: Close Firefox before backing up my Profile. T <T@invalid.invalid> - 2019-07-07 00:52 -0700
      Tell the customer that he has to close Firefox. Jeff-Relf.Me  @.@ - 2019-07-06 19:05 -0700
        Re: Tell the customer that he has to close Firefox. Paul <nospam@needed.invalid> - 2019-07-07 00:48 -0400
          Re: Tell the customer that he has to close Firefox. T <T@invalid.invalid> - 2019-07-07 00:54 -0700
  Re: places.sqlite read time out VanguardLH <V@nguard.LH> - 2019-07-06 09:44 -0500
    Re: places.sqlite read time out Char Jackson <none@none.invalid> - 2019-07-06 15:34 -0500
    Re: places.sqlite read time out T <T@invalid.invalid> - 2019-07-06 18:20 -0700
      Re: places.sqlite read time out VanguardLH <V@nguard.LH> - 2019-07-07 03:15 -0500
        Re: places.sqlite read time out T <T@invalid.invalid> - 2019-07-07 01:20 -0700
  Re: places.sqlite read time out Frank Slootweg <this@ddress.is.invalid> - 2019-07-06 17:13 +0000
    Re: places.sqlite read time out VanguardLH <V@nguard.LH> - 2019-07-06 19:14 -0500
      Re: places.sqlite read time out Frank Slootweg <this@ddress.is.invalid> - 2019-07-07 13:50 +0000
        Re: places.sqlite read time out VanguardLH <V@nguard.LH> - 2019-07-07 14:49 -0500
  Re: places.sqlite read time out Paul <nospam@needed.invalid> - 2019-07-07 11:46 -0400

csiph-web