Groups | Search | Server Info | Login | Register
Groups > comp.databases.ms-sqlserver > #2253
| From | Anton Shepelev <anton.txt@g{oogle}mail.com> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: Make a backup only if necessary |
| Date | 2024-05-31 13:53 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <20240531135309.a107b0e4fc99f9659bed7d8c@g{oogle}mail.com> (permalink) |
| References | <20240527125929.d701039c2aec3196dc3d4731@g{oogle}mail.com> <XnsB17FE71C2C3C7Yazorman@127.0.0.1> <20240528124112.80ab65ec4a358da57093539b@g{oogle}mail.com> <XnsB180CD77E5F89Yazorman@127.0.0.1> <20240529005233.d0405d2f6f826fd0e8ae0624@gmail.moc> |
I wrote:
> Now my system uses LSNs to avoid storing redundant
> differential backups
For now, I have decided upon detecting changes elibible for
backup by the following query:
SELECT TOP 1 1 FROM fn_dblog(NULL,NULL)
WHERE operation IN
( 'LOP_INSERT_ROWS', 'LOP_MODIFY_ROW', 'LOP_DELETE_ROWS') AND
AllocUnitName NOT LIKE 'sys.%'
The output of `fn_dblog' is cleared after every full and
diff backup, probably because the transaction log is
cleared, although I don't know why since my recovery model
is `simple' anyway, and it should not need a backup to be
cleared...
The major problem with this approach is that fn_dblog is an
undocumented function apt to change or disappear any time.
If anybody know how to perform an equivalent test using more
stable and reliable method, I shall be grateful if they
share it.
--
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-05-27 12:59 +0300
Re: Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-05-27 13:53 +0300
Re: Make a backup only if necessary Erland Sommarskog <esquel@sommarskog.se> - 2024-05-27 22:43 +0200
Re: Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-05-28 12:41 +0300
Re: Make a backup only if necessary Erland Sommarskog <esquel@sommarskog.se> - 2024-05-28 20:11 +0200
Re: Make a backup only if necessary Anton Shepelev <anton.txt@gmail.moc> - 2024-05-29 00:52 +0300
Re: Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-05-31 13:53 +0300
Re: Make a backup only if necessary Erland Sommarskog <esquel@sommarskog.se> - 2024-06-01 11:34 +0200
Re: Make a backup only if necessary Anton Shepelev <anton.txt@gmail.moc> - 2024-06-02 14:43 +0300
Re: Make a backup only if necessary Erland Sommarskog <esquel@sommarskog.se> - 2024-06-04 20:22 +0200
Re: Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-06-05 17:15 +0300
Re: Make a backup only if necessary Anton Shepelev <anton.txt@g{oogle}mail.com> - 2024-06-05 19:37 +0300
csiph-web