Solved

Task Schedule not working in windows 2012

Posted on 2015-01-06
4
258 Views
Last Modified: 2015-01-06
Hi,

I have some application installed in windows 2012 server and I am taking backup using below command.
pg_dump -h localhost -p 5432 -U adempiere adempiere 1>D:\Adempiere\Data\ExpDat.dmp

I created a .bat file and copied these commands. If I run the .bat file manually, it works fine and backup happens.

If I schedule a task to run the .bat file, the task shows completed, but there is no backup happens. I tested this in windows 2008 server, there also the same issue.

But in windows 2003 server, task scheduler works fine. What might be the issue
0
Comment
Question by:kolathaya123
4 Comments
 
LVL 4

Expert Comment

by:Manoj Bojewar
ID: 40533300
Hi,
run the schedule task using system account and let us know the status.

Thanks,
Manoj
0
 
LVL 7

Accepted Solution

by:
Deadman earned 500 total points
ID: 40533338
In Program\script mention only the name of batch file or script and box to contain just the name of the script and place the folder path in the Start in (optional) box

schedtask2.jpg
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 40534488
You should add error logging to your script, like with
pg_dump -h localhost -p 5432 -U adempiere adempiere 1>D:\Adempiere\Data\ExpDat.dmp 2>D:\Adempiere\Data\Errors.log

Open in new window

0
 

Author Closing Comment

by:kolathaya123
ID: 40534992
Excellent.. Thanks alot
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now