join the MSSQLTips community

MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

 
How to Backup and Restore a SQL Server FILESTREAM Enabled Database - MSSQLTips

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

How to Backup and Restore a SQL Server FILESTREAM Enabled Database

Last post 10-27-2009 5:16 AM by Claire.Brooking. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 10-08-2009 12:30 AM

    How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    This post is related to this tip: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    http://www.mssqltips.com/tip.asp?tip=1854

  • 10-15-2009 7:16 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

     The article didn't prove to me that everything was backed up.  (But it's early in the am, so maybe my thinking cap isn't on just right...)

    When the backup was restored on the same machine, the image files would still be in their original places, so it could just be finding the files it needs by accident.

    If the database is restored on a different, stand-alone machine (so images on a shared network drive wouldn't be found), what happens?  Are the images restored also?  Do the various directories they are placed in get created in the file system?  How does that work if the source machine was installed on D: and the restored machine used C:?  Or are they images just not included in the backup?

    If the files are just not included, how does a dba know what directories and files need to be backed up?  What strategies/tools can they use to easily get all the files backed up in a manner that makes it easy to restore them to all the crazy, uncontrolled places a developer could have loaded them from?  Or are images limited to a few special directories that the dba creates?

    Thanks!

  • 10-17-2009 3:52 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    If you are restoring the FULL backup of a FILESTREAM enabled database on a different server, you will be able to see all the images files along with other content within the database once the database is successfully restored on the new machine. However, prior to the restore please make sure that the FILESTREAM feature is enabled on “Server B”.

    If there are frequent changes happening on the FILESTEAM enabled database then it would be a good practice to execute CHECKPOINT prior to the backup of database as this will EXPLICIT call FILESTREAM Garbage Collector process.  

    Hope this helps!

  • 10-23-2009 7:34 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    hi,

    It is a very nice post. i have tried taking the backup of database containing filestream and it works fine. I have tried restoring it on other server also and that works too.

    Now, i am facing another problem. Our database is big in size (approx. 320 GB) and it takes time to backup and restore it. Therefore, the client wants us to suggest some technique to reduce the time.

    I have tried piecemeal restore which allows you to backup and restore individual filegroups in the database. It works fine with all the other filegroups except for Filestream ones. I am able to take backup and not able to restore it.

    Do u have any idea??

    Regards,

    Prashant.

    Filed under:
  • 10-23-2009 10:00 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    Prashant,

    We will pose the question to some SQL Server vendors in the community to see if they can be of any assistance to reduce the backup and recovery time.

    Thank you,
    The MSSQLTips Team

  • 10-23-2009 6:21 PM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    Hi There,

    Idera's SQL Safe V6.0 (currently in late stage beta, GA on 2 November 2009) handles both backup and restore of databases including FileStream data beautifully.

    The product, with its new compression algorithms gleaned directly from world renowned compression experts and patented IntelliCompress technology, will compress SQL Server database backups such as these to a very high ratio indeed (typically 85%+) whilst at the same time dramatically reducing both backup and restore times.

    The beta can be accessed until 30 October here http://www.idera.com/Promo/SQL-safe-6-SQL-vdb-Beta/

    Brett Hawton

    Idera Product Designer 

      

  • 10-24-2009 3:28 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    Generally backup and restore of FILESTREAM enabled database that too which has large number of FILESTREAM files will be slower than a backup or restore of an SQL Server database of an equivalent size. This happens because of the extra overhead of backing up each NTFS file and this overhead becomes move noticeable when the FILESTREAM files are very small in size (less than 1 MB).

    May I know out of 320 GB, how much space is currently used for FILESTREAM data storage? And also let me know how many files are stored and there average size?

    I am assuming that you have millions of FILESTREAM files and there could be many files which are of size below 1 MB. Ideally FILESTREAM should be used when you are storing file greater than 1 MB.

    You can optimize NTFS performance by turning off the below two processes by running it within the command prompt.

    FSUTIL BEHAVIOR SET DISABLE8DOT3 1

    The above option disables the generation of 8.3 names on all NTFS volumes on the server where FILESTREAM Feature is configured.

    FSUTIL BEHAVIOR SET DISABLELASTACCESS 1

    The above option will turn off updating the last access time for a file when it is accessed.

    Hope this helps!

  • 10-27-2009 5:16 AM In reply to

    Re: How to Backup and Restore a SQL Server FILESTREAM Enabled Database

    Hi there, I’m part of the SQL Backup team at Red Gate Software, and I spotted the MSSQLTips team’s reply, inviting vendors to give tips on how to cut down backup and restore time. Returning to the first question too, our backup tool, SQL Backup, also supports the backing up and restoring of databases using the FILESTREAM data type. Re. cutting down backup and restore time, we launched SQL Backup 6 this year with a new compression level that’s designed to significantly reduce the size of the backup file taken. Our in-house testing shows that by using one of the four compression levels available in SQL Backup Pro, database backups can be compressed by up to 95%. The smaller the backup, the more time you’ll save on the restore.  You can see a DBA's review of SQL Backup 6 here: http://www.simple-talk.com/sql/sql-tools/sql-backup-6-wind-of-change/. Shawn, the author, also talks about network resilience for backups and ‘self-healing’ log shipping in SQL Backup Pro (features that can save you time and effort if you’re transferring or writing backups across a flaky network) among other advanced backup and restore options, such as kill existing connections and list orphaned users.  

     

    Hope this helps!

     

    Claire Brooking

    SQL Backup brand manager

    Red Gate Software

Page 1 of 1 (8 items)