Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Can I script parts of the RMS ?

Posted on by 60

Greetings,

 

  Just registered and thanks for any and all help.

We are currently using the RMS programs for our stores and I'm looking to update the backup process for some of my lazier employees.
  Specifically, I'd like to do a PS Script that would run the Backup for the RMS program.  Optimally, I'd like it to auotpopulate with the $Date.

    I'll start off by asking if anyone is aware of a command line prompt to run the Backup Utility? 

*This post is locked for comments

  • Ron Rahhal Profile Picture
    Ron Rahhal 545 on at
    Re: Can I script parts of the RMS ?

    If you get confused, or it doesn't work right for you, just post back and I'll help you fix it.

    It's important that you don't just save it to the hard drive, but copy it to an external drive, and then to the cloud.  Adding the external drive would make the file look something like this:

    osql -U sa -P type_password_here -S type_server_name_have -Q "BACKUP DATABASE type_database_name_here TO DISK = 'c:\RMSbackup.bck'"

    copy c:\RMSbackup.bck f:\Backup\RMSbackup.bck

    exit

    Note that F: is your external drive - modify as necessary.  Also, create your folders before running the command - it won't create the folders, just the file.  Also, I have a separate folder for each day of the week, therefore a different batch file for each day, e.g. C:\Backup\Monday\RMSbackup.bck, C:\Backup\Tuesday\RMSbackup.bck, etc.

  • K.Held Profile Picture
    K.Held 60 on at
    Re: Can I script parts of the RMS ?

    Excellent, this looks like a good start, thank you Mr. Rahhal.

    I'll try it out later this week!

  • Ron Rahhal Profile Picture
    Ron Rahhal 545 on at
    Re: Can I script parts of the RMS ?

    Maybe this can get you started.  Create a file called backup.bat and use scheduled tasks for it to run at a specified time.  I also create subfolders for each day of the week and a mid-day backup.  Also, I modify the script to copy the backup from the hard drive to an external drive.  The mid-day backup should be uploaded to the cloud on a daily basis.

    *****************************************************************************************************

    --Enter the password, without quotes, the server name, without quotes (e.g., TONY-PC or TONY-PC\SQLEXPRESS), and database name, without quotes

    --Personally, I would backup the data to C:\Backup or D:\Backup.  But you have to create a folder called Backup FIRST!

    osql -U sa -P type_password_here -S type_server_name_have -Q "BACKUP DATABASE type_database_name_here TO DISK = 'c:\RMSbackup.bck'"

    exit

    Ron Rahhal

    Best POS Sales

  • Craig Harris Profile Picture
    Craig Harris 795 on at
    Re: Can I script parts of the RMS ?

    We use this application...   its excellent.  http://sqlbackupandftp.com/      

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans