web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

RMS DB Backups with SQL Express

(0) ShareShare
ReportReport
Posted on by 110

Hello everyone,

 I am looking to find information on how everyone is handling their RMS DB Backups with SQL Express.  All information is welcomed. 

 

Thank you,

 Wesley

*This post is locked for comments

I have the same question (0)
  • wojak138 Profile Picture
    165 on at
    Re: RMS DB Backups with SQL Express

    The Best and easiest way i have found is to use

    SQLBackupAndFTP utility

    Its free for basic single store operations

    http://sqlbackupandftp.com/

    It will backup and transfer / upload to network driver offsite servers, ftp etc.

  • Suggested answer
    Community Member Profile Picture
    on at
    Re: RMS DB Backups with SQL Express

    Hello Wesley,

    Thank you for your question.

    Microsoft recommends that you make routine, scheduled backups of your SQL database. There is a Knowledge base article that describes setting up an automated scheduled backup of your SQL database.

    Although it is written for the Microsoft Dynamics GP product, it applies to the backup of SQL 2005 Express, which is included with Microsoft Dynamics GP the same way it is with RMS.

    You may read the Knowledge Base article here:

    mbs2.microsoft.com/.../kbdisplay.aspx

    Thank you,

    Scott Wardzinski

    Microsoft Dynamics RMS Support Engineer

  • Community Member Profile Picture
    on at
    Re: RMS DB Backups with SQL Express

    Wesley, I found the simplest solution to work the best for us, that is a script (bat file) for the hq backup, then a script to upload it to Amazon S3. It has been very successful. I put the scripts on each POS. Then task manager to schedule it after hours.

  • DEVON LEROUX Profile Picture
    1,565 on at
    Re: RMS DB Backups with SQL Express

    Craig, is this possible on a machine that has both Store Operations and HQ installed?

    I am assuming so and the second line would read :

    osql -U sa -P Password1 -Q "BACKUP DATABASE store db name TO DISK='C:\BACKUP\Monday_POS.bck'"

    for the store operations db

    and

    osql -U sa -P Password1 -Q "BACKUP DATABASE hq db name TO DISK='C:\BACKUP\Monday_POS.bck'"

    for HQ.

    So in the end I would have 14 batch files. Unless it's possible to do both Store Operations and HQ in the same batch file. ie:

    del C:\BACKUP\Store_Monday_POS.bck

    osql -U sa -P Password1 -Q "BACKUP DATABASE store db name TO DISK='C:\BACKUP\Monday_POS.bck'"

    xcopy c:\BACKUP\Monday_POS.bck "\\BackOffice\BACKUP" /Y

    del C:\BACKUP\HQ_Monday_POS.bck

    osql -U sa -P Password1 -Q "BACKUP DATABASE hq db name TO DISK='C:\BACKUP\Monday_POS.bck'"

    xcopy c:\BACKUP\Monday_POS.bck "\\BackOffice\BACKUP" /Y

    Sorry my knowledge of batch files is fairly limited. Your help is appreciated.

    Devon

  • Craig Wood Profile Picture
    785 on at
    Re: RMS DB Backups with SQL Express

     Create a batch file with the following:

    del C:\BACKUP\Monday_POS.bck
    osql -U sa -P Password1 -Q "BACKUP DATABASE RMS TO DISK='C:\BACKUP\Monday_POS.bck'"
    xcopy c:\BACKUP\Monday_POS.bck "\\BackOffice\BACKUP" /Y

    Monday_POS.bck is the name of your backup for Monday. When you run the backup for a Monday you delete last Mondays backup first. The first line does this for you.

    The second line specifies your sql password, name of your database, and where to back it up to.

    The third line copies the file to another computer on your network.

    Change all the values to whatever is appropriate for your installation.

    Use Task scheduler to run each backup on the appropriate day. Create one for each day of the week.

    Craig

  • Fran Lowry Profile Picture
    10 on at
    Re: Re: RMS DB Backups with SQL Express

    I created a .cmd file that I set to run nightly through the Task Scheduler.

     The .cmd file did the following:

    "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE" -U backup -P backup -i "C:\RMS_Scripts\database_bkup.sql"

    And the .sql file was C:\RMS_Scripts\database_bkup.sql and did this: 

    BACKUP DATABASE [RMSDB] TO DISK = N'D:\Backups\RMSDB.bak' WITH NOFORMAT, INIT, NAME = N'RMSDB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS=10
    GO

     

    Hope this helps!

     

  • Wesley Sothard Profile Picture
    110 on at
    Re: RMS DB Backups with SQL Express

    To add to this.  Are there any good references out there for RMS backup best practices?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans