Rem Step #4 - Change the 'BACKUP_FOLDER' to be the name of the folder where the backup files will be saved. Rem Note: This setting is normally set as C:\BoxOffice Rem Step #3 - Change the 'BOXOFFICE_DIR'to be the location of the main BoxOffice folder. Set POSTGRESQL_PATH=C:\Program Files\PostgreSQL\9.1
Bat file not running 64 Bit#
Rem even on 64 bit machines, this should beĜ:\Program Files\PostgreSQL\9.1 Rem Note: This setting is normally set as C:\Program Files\PostgreSQL\9.1 Rem Step #2 - Change the 'POSTGRESQL_PATH' to be the location where PostgreSQL is installed Set it to match exactly the PostgreSQL database name Rem Note: This setting is normally always changed. Rem Step #1 - Change the 'DATABASE_NAME' to be the name of the database you need to backup Rem 3) Select 'Properties' from the pop-up context menu Rem To edit the Windows Scheduled Task that you created: Rem 3) Select 'Run' from the pop-up context menu Rem 2) Right Mouse Click on the schedule task that you created Rem Option B) Via the created Windows Scheduled Task Rem Option A) Via the windows command prompt Rem If you want to run this backup script outside of a regular scheduled backup: Rem 4) note: you can set this to run multiple times in one day if you wish Rem 3) Follow the prompts to run the program C:\BoxOffice\BackupTM.bat Rem 2) Double Click on Add Scheduled Task Rem 1) In Windows, goto Start > Settings > Control Panel > Scheduled Tasks Rem To setup the Windows Scheduled Task to run this script every day: Rem C:\BoxOffice\ - required to be in the BoxOffice folder Rem C:\BoxOffice\BackupTM.bat - this file you are reading. Rem C:\BoxOffice\Backups - the location where the database backups will be saved Rem C:\BoxOffice - the main BoxOffice data folder Rem Based on the default settings, the standard location of the files are: Rem the backup path, then please move program into that folder. Rem is assumed to be in the BoxOffice folder, where-ever the user wants it. Rem the server has 'trust' enabled for 127.0.0.1 or localhost in the pg_hba.conf file for PostgreSQL. Rem Please note that this script assumes that it is being run off the server machine and that
Bat file not running code#
Rem Alter this source code as you see fit to suit your needs
![bat file not running bat file not running](https://helpdeskgeek.com/wp-content/pictures/2017/09/check-security-permissions.png)
Rem if desired, you can specify a remote FTP site tosend the database to It also DELETES an backup files that are older than xx days Rem backup script of the PostgreSQL database. Rem This database backup script integrates with Theatre Manager to support provide an automatic Rem - THEATRE MANAGER POSTGRES DATABASE BACKUP SCRIPT version 2.4. Under Scheduled tasks, it does not copy to the mapped drive. When I make it a scheduled task, the first part runs but not the second.īasically, it appears to run a local backup to the hard drive then copies that backup to a mapped drive on another computer. When you manually double-click on it, it runs fine. They provide their own backup which is a batch file.
Bat file not running software#
We have a customer who uses a ticketing software developed elsewhere.