Automate full copy/backup and restore Company NAV 4x

donit
Member Posts: 24
Hello,
It's a classic client 4x version. There is a manual process in place for an organization for backing up production company and restore it on another server that users could use it there.
Please advise how it would be possible to automate it. I've seen a code how to do it before and even had a copy of it but I couldn't find it now. Is it to create an SQL sp and do the SSIS package or there is a better way of doing it. I've also seen a few lines of a code for PowerShell that could be probably also used for this automated task but it's for NAV 2013 while the current version I'd need to automate is an old one as 4x.
Thanks
It's a classic client 4x version. There is a manual process in place for an organization for backing up production company and restore it on another server that users could use it there.
Please advise how it would be possible to automate it. I've seen a code how to do it before and even had a copy of it but I couldn't find it now. Is it to create an SQL sp and do the SSIS package or there is a better way of doing it. I've also seen a few lines of a code for PowerShell that could be probably also used for this automated task but it's for NAV 2013 while the current version I'd need to automate is an old one as 4x.
Thanks
0
Comments
-
For SQL Server you can set up a SQL job to do backups on a scheduled basis. You can google the correct syntax.David Machanick
http://mibuso.com/blogs/davidmachanick/1 -
Thank you, David, for your response. I need the full Company backup and restore or a copy. You are probably right that it might be not that difficult to do the SQL db back up. But, I'd need a scenario when the job would work everyday or even more often and a user could go to the copy of the PROD NAV and use it as it would be a live one. So, I'd need a backup and restore.
I tried to google it of course but I found the NAV 2013 via powershell code only for now e.g. starts as below:
#Backup the Application Database
$NavApplication = Get-NAVApplication $ServiceInstance
Backup-SqlDatabase -ServerInstance $NavApplication.'Database Server' -Database $NavApplication.'Database Name' -BackupAction Database
That is nice and easy coding that I could use for automation but it might not work for NAV 4x probably as it's for NAV 2013.
They also say in the old Docs that MS NAV add things such as "Backing up and restoring data can be automated as jobs, and these canrun without any disruption to your work". But, I could not locate any specifics for it.
If you know any links please send it to me.
Thanks0 -
I did a research and it seems as a simple SQL backup and restore could probably work.
Thanks0 -
yes, you can take back up and restore manually. that will be the fastest way in your situation.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions