Create a folder titled backup_script in your World of Warcraft\_retail_\ directory.
Within this folder, download and save the attached backup.bat (right click, save as
)
file. With a text editor like Notepad or Notepad++
open the backup.bat file and make the following changes:
- Change the
backup_dir=
line to the path where you'd like to save your backup.%userprofile%
is short for your home directory, such as C:\Users\Bob. I recommend storing the backup in a cloud storage provider like Dropbox, Google Drive, OneDrive, etc.
Please note that this script does not automatically remove old backups, so be sure to clean up after yourself every once and a while or you will exhaust your storage space.
- Ensure that
wow_dir=
points to your World of Warcraft retail install location. This is likely C:\Program Files (x86)\World of Warcraft\_retail_\, but your path may differ.
If you don't have 7-Zip, download and install it. You will also need to download the 7-Zip Extra archive from https://www.7-zip.org/download.html. Extract this archive and copy the contents of the x64 folder to backup_script in World of Warcraft\_retail_\. If done correctly, the contents of your backup_script folder should look like this:
Now, to test your script works correctly you should be able to simply double click backup.bat and it should start to run! If working correctly, you should see the a screen like the following:
To automate this script, we'll be using Windows' Task Scheduler. From the start menu, search for the app and open it.
Next, under Task Scheduler Library, right click and select New Folder...
.
Name the folder World of Warcraft.
When World of Warcraft shows in the sidebar, right click it and select
Create Task...
In the popup that appears, fill the prompt out as follows:
On the Triggers
tab, click New...
and configure when you'd like your backups
to occur. I have mine set like so:
Similarly, on the Actions
tab, click New...
and select Start a program
.
Under Program/script:
, enter the path to the backup.bat file we created
earlier. You can use the Browse...
button to locate this, but it should be
"C:\Program Files (x86)\World of Warcraft\_retail_\backup_script\backup.bat"
IMPORTANT: YOU MUST ENSURE THAT YOU FILL IN THE Start in (optional):
FIELD.
This field must be filled in with the path to the backup_script folder that
contains the backup script in the field above. If consistent with the line above
this should be
C:\Program Files (x86)\World of Warcraft\_retail_\backup_script\
Finally, the Settings
tab should have the following settings applied:
If you know what you're doing, you can adjust these settings to your liking, otherwise, leave them be.
The Conditions
tab should have no options checked, and you can ignore the
History
tab.
Finally, to confirm the automated task runs as expected, you can right click the
new task and select Run
If correct, you should see a window just like you did when you ran the script the first time!
To confirm the script worked as expected, check the backup location you set in
the script. You should see a series of folders (year, month, date of the backup)
with a retail.7z
folder in the last!