home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 19,483 of 19,505   
   Erland Sommarskog to Anton Shepelev   
   Re: Make a backup only if necessary   
   27 May 24 22:43:08   
   
   From: esquel@sommarskog.se   
      
   Anton Shepelev (anton.txt@g{oogle}mail.com) writes:   
   > I am working on an in-house backup solution for our MSSQL   
   > databases, and have found that a differential backup may   
   > take considerable space (around 1 Mb)   
      
   I'm tempted to say that 1MB in size for a database back is very small.   
      
   > I want to make sure that my differential backups are not   
   > useless.  One solution is to compare byte-for-byte each new   
   > diff. backup with the previous one, and delete the copy if   
   > it turn out redundant, but I wondered if there were a   
   > simpler method.   
      
   To restore a database you need most recent full and most recent diff,   
   so keeping both is not really necessary. Unless you would want to   
   perform some sort of point-in-time restore. But normally, you use   
   log backups for that, not diff backups.   
      
   In any case, RESTORE HEADERONLY on the backup and checking last LSN   
   seems to be like a tenable solution. You could also use sys.fn_dblog   
   to find the last LSN - but keep in mind that this is an undocumented   
   and unsupported function.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca