Automate Backup of 2009 native database

Noeline
Member Posts: 54
Hi
I have one client that is still running on the 2009 native database. They will be upgrading in January to 2017. Till now I have been using HotCopy which works well but the file size after compression is 2.5gb. A compressed fbk is only 161mb. I would like to automate the FBK backups and upload them to the cloud.
There is a wonderful script that I found on Mibuso, and it works perfectly to run the backup, but it runs from a form.
http://forum.mibuso.com/discussion/21430/autobackup-from-navision-client-not-nas
I tried to create a CU using similar code, but the timer never executes and I have no idea why!!! I'm really out of my depth here. Any suggestions, other than buying ExpandIt, would be really appreciated.
OnRun()
Description := STRSUBSTNO(Text0002,TODAY);
Filename := STRSUBSTNO(Text0005,TODAY);
IF ISCLEAR(WSHShell) THEN
CREATE(WSHShell);
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.Interval(100);
Timer.Enabled(TRUE);
Timer::Timer(Milliseconds : Integer)
IF NOT ShellIsSend THEN BEGIN
WSHShell.SendKeys('%tb');
ShellIsSend := TRUE;
BEEP(440,100);
END ELSE BEGIN
IF NOT ShellIsSend2 THEN BEGIN
WSHShell.SendKeys(Description);
WSHShell.SendKeys('{DOWN}');
WSHShell.SendKeys(Filename);
WSHShell.SendKeys('{DOWN}');
WSHShell.SendKeys('{Enter}');
WSHShell.SendKeys('{Enter}');
ShellIsSend2 := TRUE;
Timer.Enabled(FALSE);
END;
END;
Thanks - Noeline
I have one client that is still running on the 2009 native database. They will be upgrading in January to 2017. Till now I have been using HotCopy which works well but the file size after compression is 2.5gb. A compressed fbk is only 161mb. I would like to automate the FBK backups and upload them to the cloud.
There is a wonderful script that I found on Mibuso, and it works perfectly to run the backup, but it runs from a form.
http://forum.mibuso.com/discussion/21430/autobackup-from-navision-client-not-nas
I tried to create a CU using similar code, but the timer never executes and I have no idea why!!! I'm really out of my depth here. Any suggestions, other than buying ExpandIt, would be really appreciated.
OnRun()
Description := STRSUBSTNO(Text0002,TODAY);
Filename := STRSUBSTNO(Text0005,TODAY);
IF ISCLEAR(WSHShell) THEN
CREATE(WSHShell);
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.Interval(100);
Timer.Enabled(TRUE);
Timer::Timer(Milliseconds : Integer)
IF NOT ShellIsSend THEN BEGIN
WSHShell.SendKeys('%tb');
ShellIsSend := TRUE;
BEEP(440,100);
END ELSE BEGIN
IF NOT ShellIsSend2 THEN BEGIN
WSHShell.SendKeys(Description);
WSHShell.SendKeys('{DOWN}');
WSHShell.SendKeys(Filename);
WSHShell.SendKeys('{DOWN}');
WSHShell.SendKeys('{Enter}');
WSHShell.SendKeys('{Enter}');
ShellIsSend2 := TRUE;
Timer.Enabled(FALSE);
END;
END;
Thanks - Noeline
0
Comments
-
I'm already achieving that with HotCopy. I need the condensed .fbk backup that only has data.0
-
Make your codeunit SingleInstance = Yes0
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