Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How to make a backup of NAV 2016 using powershell script

(0) ShareShare
ReportReport
Posted on by

I want to make a backup of nav 2016 through powershell and automate this process for a daily backup.

it usualy export it as .navdata

*This post is locked for comments

  • dmourghen Profile Picture
    dmourghen on at
    RE: How to make a backup of NAV 2016 using powershell script

    Is it on NAVAPP 2016 or SQL itself?

  • Suggested answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: How to make a backup of NAV 2016 using powershell script

    Are you using sql server 2016 ?

    There is this issue and you need to install the updated cu.

    I suggest you to install the latest cu of Nav 2016.

    www.microsoft.com/.../details.aspx

  • dmourghen Profile Picture
    dmourghen on at
    RE: How to make a backup of NAV 2016 using powershell script

    It seems when importing back now it's growing the database

    SQL MDF file grew from 117 GB to 673 GB

    SQL LOG file grew from 13 GB to 107 GB

    Can you please advise if you know why.

  • Suggested answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: How to make a backup of NAV 2016 using powershell script

    You can use Export-NAVData cmdlet :

    Export-NAVData -DatabaseServer 'MyServer' -DatabaseName 'Demo Database NAV' -AllCompanies -FilePath C:\file\Companies.navdata

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans