Home › Knowledgebase › KB-1543

How To Set Up Automated Nightly Backup For Pos Drive Restaurant Queensland

Summary

This guide helps you troubleshoot and resolve: How To Set Up Automated Nightly Backup For Pos Drive Restaurant Queensland. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

This guide helps hospitality businesses across Queensland set up automated nightly backups for a Pos Drive restaurant system. Connecting an external backup drive to your POS server or back-office PC and configuring a scheduled task ensures your daily sales, inventory, and customer records are protected without manual intervention. Given regional internet reliability and the risk of power outages or cyclone season disruptions in Queensland, maintaining a reliable local backup is a critical part of your venue's data protection strategy.

Before You Begin

Warning: Before configuring automated backups, perform a manual test backup to confirm Pos Drive can read from and write to the external drive. Automated backups will fail silently if the drive is disconnected or permissions are incorrect.

Quick Fix Steps

  1. Connect the external backup drive to your Pos Drive server or back-office PC.
  2. Open File Explorer and note the drive letter assigned to the backup drive (for example, E: or F:).
  3. Locate your Pos Drive data folder.
  4. Create the C:\Scripts directory if it does not already exist.
  5. Create a backup batch file using robocopy.
  6. Use Windows Task Scheduler to create a task that runs nightly, configured to run whether the user is logged on or not.
  7. Set the action to run your backup batch file.
  8. Verify the first scheduled backup completes successfully.

Detailed Instructions

Step 1: Connect and Identify the Backup Drive

  1. Plug the external USB drive into an available port on your POS server or back-office PC.
  2. Press Windows key + E to open File Explorer.
  3. Select This PC from the left navigation pane.
  4. Under Devices and drives, note the drive letter assigned to your external drive.
Note: If the drive does not appear, try a different USB port or restart the PC. Avoid using USB hubs where possible; connect the drive directly to the computer.

Step 2: Locate Your Pos Drive Data Folder

  1. Open File Explorer.
  2. Navigate to the folder where Pos Drive stores its database and transaction files. A common location is C:\PosDrive\Data, though this may vary based on your installation.
  3. Confirm the folder contains your sales and inventory data files before proceeding.
Warning: If you are unsure of the exact data folder location, contact your Pos Drive provider or Open a Ticket. Backing up the wrong folder will not protect your restaurant records.

Step 3: Create the Scripts Directory and Backup Batch File

  1. Open File Explorer and navigate to C:\.
  2. Right-click in an empty area, select New, then select Folder.
  3. Name the folder Scripts. If the folder already exists, proceed to the next step.
  4. Open Notepad.
  5. Enter a robocopy command to copy your Pos Drive data to the external drive. For example:

robocopy "C:\PosDrive\Data" "E:\PosDriveBackup" /E /R:3 /W:5 /LOG:"C:\Scripts\BackupLog.txt" /APPEND

  1. Replace C:\PosDrive\Data with your actual Pos Drive data folder path.
  2. Replace E:\PosDriveBackup with your external drive letter and desired backup folder name.
  3. Save the file as PosDriveBackup.bat in C:\Scripts\PosDriveBackup.bat.
Note: The /E switch copies all subdirectories, including empty ones, without deleting files from the backup that are no longer in the source. This is safer for backup purposes than /MIR, which mirrors exactly and can delete backup files.
Warning: Ensure the Pos Drive application is closed before the backup runs. If Pos Drive is running and holds exclusive file locks on its database, robocopy may fail to copy those files or create an inconsistent backup that cannot be restored correctly.

Step 4: Configure Power Settings

  1. Press Windows key, type Control Panel, and press Enter.
  2. Go to Hardware and Sound > Power Options.
  3. Select Change plan settings for your current power plan.
  4. Click Change advanced power settings.
  5. Expand Sleep and set Sleep after to Never for both On battery and Plugged in.
  6. Click OK and Save changes.

Step 5: Schedule the Backup with Task Scheduler

  1. Press Windows key, type Task Scheduler, and press Enter.
  2. In the right-hand Actions pane, select Create Basic Task...
  3. Enter a name such as Pos Drive Nightly Backup and select Next.
  4. Choose Daily and select Next.
  5. Set the start time to a quiet period for your restaurant, such as after closing (for example, 11:00 PM), and select Next.
  6. Choose Start a program and select Next.
  7. Under Program/script, enter C:\Scripts\PosDriveBackup.bat (or the path where you saved your batch file).
  8. Select Next, review the settings, and choose Finish.
  9. In the main Task Scheduler window, locate your new task in the Task Scheduler Library, right-click it, and select Properties.
  10. On the General tab, under Security options, select Run whether user is logged on or not.
  11. On the Conditions tab, select Wake the computer to run this task.
  12. Click OK to save the changes.

Step 6: Verify the Backup and Test Restore

  1. Wait for the scheduled time, or manually trigger the task by right-clicking it in Task Scheduler and selecting Run.
  2. Open File Explorer and navigate to your external backup drive.
  3. Confirm the Pos Drive data files have been copied to the backup folder.
  4. Check C:\Scripts\BackupLog.txt for any errors.
  5. Periodically test restoring a file from the backup to ensure the backup is usable.

Troubleshooting

Backup Task Does Not Run

Backup Folder Is Empty

External Drive Not Recognised

Backup Drive Fills Up

Warning: Automated backups protect against data loss from hardware failure or accidental deletion, but they are not a substitute for offsite protection. Consider periodically copying critical backup files to a separate location or cloud storage to protect against theft, fire, or flood at your venue.

If you need assistance identifying your Pos Drive data folder or configuring the scheduled task, Open a Ticket.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket