?
Solved

Task Schedule not working in windows 2012

Posted on 2015-01-06
4
Medium Priority
?
298 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 2000 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 71

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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Suggested Courses

809 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