此站点大量使用JavaScript。
请在您的浏览器中启用JavaScript。
正式服
PTR
10.2.7
PTR
10.2.6
Beta
Backing up Important WoW Data and You!
来自 Keldesh
[Last Updated]:
2022/12/26
变更日志
补丁:10.0.2
目录
评分:
There are many reasons to backup and save specific parts of your World of Warcraft data. If you have addons that have a lot of customization you have done you will want to back up those settings. You may also want to back them up if you are starting to use a new auto-installer program like the
CurseForge App
or
Minion
. More so if you plan on using either for backing up your addons and settings. It is a good idea to have them backed up in more than one location.
The following guide will take you through step by step on how to backup some of the most important data files from your WoW directory. I will include a manual way for both Windows and Mac computers, and a more automated way for Windows using a batch file.
This is for Windows only. I will not help troubleshoot if this is not working for you. You use this at your own risk!
If you are having issues with AddOns or GUI in-game; contact the AddOn author or Blizzard.
Locating Your WoW Folder
To locate your World of Warcraft folder, log into the Blizzard App and click on the Blizzard icon in the upper left corner. Select Settings from the drop-down menu.
Now select Game Settings on the left side. On the right you will see all your install Blizzard games. Scroll down until you find your World of Warcraft version you are wanting and toggle it open. There should be Retail, Classic, and Classic TBC (at time of this writing). You do not want any Alpha, Beta, or PTR ones.
In the image the location of the World of Warcraft Classic folder is
G:\World of Warcraft
(we will refer to this as the <WOWFOLDER>). Remember yours as you will need it later.
Important Data
As of patch 8.1 (Tides of Vengeance), Blizzard has changed the file path structure in the World of Warcraft folder. You folders are now located in a _retail_ folder inside your World of Warcraft directory. This is more than likely in preparation for Classic release at a future date.
There are some key data that is important to back up. You can backup some or all of them depending on what your end goal is.
Interface
<WOWFOLDER>\<VERSION>\Interface
This is where your addons are stored. This is just the actual addon file. Not your settings or customization for them. You can back this up for easier install, but remember that if you use an older backup of these you may need to update the addons.
WTF
<WOWFOLDER>\<VERSION>\WTF
This folder contains all your settings for the addons, your macros, and you settings for the default UI as well. This is a very important folder to backup.
Cache
<WOWFOLDER>\<VERSION>\Cache
This contains cache data from the game. Like a browser this stores data to help speed loading times along. This is a folder that is often requested to delete when you are having some issues as data tends to become outdated and/or corrupted over time.
Screenshots
<WOWFOLDER>\<VERSION>\Screenshots
These are the image you get from in game when you hit the Print Scrn (Windows) or Command (⌘) + Shift + 3 (Mac).
Version is either going to the following (at this time) inside the repected directory.
Retail: _retail_
Vanilla: _classic_era_
TBC: _classic_
Backing Up Windows
This way is good for backing up manually. Usually right before you do major changes to your UI or before you start using one of the clients from CurseForge or Zam.
Begin by opening your Command Prompt. In the search bar you can type: Command Prompt.
Right click on it and select "Run as administrator" from the drop down menu that appears.
Create a folder where you want the files stored. You can have it on your desktop if this is just a temp backup. This is what I am going to do in this guide using the folder "Backup".
<WarcraftFolder>
is whatever the <WOWFOLDER> + <VERSION>. So for example, G:\World of Warcraft\_retail_
You will want to use the following information in the Command Prompt:
xcopy /s "<WarcraftFolder>\<WhichData>"
"c:\Users\<username>\Desktop\Backup\<WhichData>"
Example:
xcopy /s "g:\World of Warcraft\_retail_\interface"
"c:\Users\Keldesh\Desktop\Backup\Interface"
This will make a copy of the Interface folder and all the files into the folder Backup on my desktop.
You may be promoted if you are specifying a file or directory. You will want to hit "D" to indicate that it is for a directory.
Repeat the steps with all the folders you wish to back up.
Backing Up Mac
This way is good for backing up manually. Usually right before you do major changes to your UI or before you start using one of the clients from Twitch or Zam.
Begin by opening your Terminal. Press Shift ⇧ + Command ⌘ + U. This will open your Utilities. Now find your Terminal, and double-click to open it.
Create a folder where you want the files stored. You can have it on your desktop if this is just a temp backup. This is what I am going to do in this guide using the folder "Backup".
You will want to use the following information in the Terminal:
cp -r "<WarcraftFolder>/<WhichData>"
"User/<username>/Desktop/Backup"
Example:
cp -r "/Applications/World of Warcraft/_retail_/WTF"
"User/Keldesh/Desktop/Backup"
This will make a copy of the WTF folder and all the files into the folder Backup on my desktop.
Resources Needed
These resources are for the automated backup for Windows.
You will need the following things:
You will need the 7-zip stand alone files.
7za.exe
7za.dll
Make sure you are downloading the 7z2107-extra.7z and not the Download 7z2107.exe *.
* - A newer version may be out so double check. Just make sure it's the "-extra.7z.
This is 7-Zip stand alone. You can get it from
7-Zip's sourceforge
. Open the 7z and you will find the 7za.exe and 7za.dll inside along with some other files you won't need.
This is a text editor. You can use notepad, but I prefer Notepad++ over notepad for writing batch files because it have syntax highlighting and syntax folding. It also has Multi-Language environment. You can get it from
their site
. You can use Sublime if you prefer.
You can use one of the following:
Dropbox
Google Drive
OneDrive
Box
Amazon Drive
For this guide I am using Dropbox because it's free, you can easily earn more storage if needed, and it's what I use.
I do not know if all the cloud storage suggestions above work with this since I don't use all of them. You will need to try and find out.
Setup
First folder I named WoW Auto Backup, but you can name it whatever you like. You want to put the 7za.exe and 7za.dll inside this folder. You can put this folder anywhere, but make sure it is somewhere you won't be deleting or moving it.
Making Your Batch
This is a step by step on what to write into your batch file and why it was used. As well as if there is anything you need to change to be specific to your computer.
You will want to start by opening Notepad++ going to "Language" and choosing "Batch" from the list. This will add the syntax highlighting and syntax folding for batch files.
This is so it doesn't spam your command prompt, and gives the batch file it's title.
ECHO OFF
@TITLE WoW Addon Backup
This creates the date and time into a better display on the file after it is backed up. If you want the time stamp to be:
YYYYMMMDD @HH-MM
So you file will end up looking like:
Interface - 2018JAN21 @13-45.zip
:: variables
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
SET year=%date:~-4,4%
SET month=%dt:~4,2%
SET day=%date:~-7,2%
SET hourMilitary=%time:~-11,2%
SET hourCivilian=%time:~7,2%
SET minutes=%time:~3,2%
if %month%==01 set monthname=Jan
if %month%==02 set monthname=Feb
if %month%==03 set monthname=Mar
if %month%==04 set monthname=Apr
if %month%==05 set monthname=May
if %month%==06 set monthname=Jun
if %month%==07 set monthname=Jul
if %month%==08 set monthname=Aug
if %month%==09 set monthname=Sep
if %month%==10 set monthname=Oct
if %month%==11 set monthname=Nov
if %month%==12 set monthname=Dec
SET datetimestamp=%year%%monthname%%day% @%hourMilitary%-%minutes%
If you want the time stamp to be:
YYYY-MM-DD @HH-MM
So you file will end up looking like:
Interface - 2018-01-21 @13-45.zip
:: variables
for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i
SET year=%fulldate:~0,4%
SET month=%fulldate:~4,2%
SET day=%fulldate:~6,2%
SET hourMilitary=%time:~-11,2%
SET hourCivilian=%time:~7,2%
SET minutes=%time:~3,2%
SET datetimestamp=%year%-%month%-%day% @%hourMilitary%-%minutes%
Suggested by Djinnii in the comments.
You are going to want to change the "G:\World of Warcraft" to whatever the path is for your World of Warcraft directory.
Default is:
C:\Program Files\World of Warcraft\_retail_
Use the
step above
to help you find it.
Change the "U:\Dropbox\WoW Storage" to the path of your folder for your Cloud hosting. Dropbox creates a directory on your computer you can find the path to. Don't forget to make a folder for your backups as well.
:: -------------------------------------------------------------------|
:: Change the "G:\World of Warcraft\_retail_" to the location and version of your WoW folder
SET wowdir=G:\World of Warcraft\_retail_
:: Change the "U:\Dropbox\WoW Storage" to the location of the folder in dropbox you want to store your backups.
SET dropbox=U:\Dropbox\WoW Storage
:: -------------------------------------------------------------------|
This just makes things a bit easier and cleaner. It makes it so the term %wowdir% is the path to your wow directory. There are 4 parts: WTF, Interface, Screenshots, and Cache. If you don't want to backup one of them just remove that section.
SET addondir=%wowdir%\Interface\addons
SET dsktpdir=%userprofile%\Desktop\AddOns
This is the code that actually does the backing up for you. You should not need to alter or mess with any of this if you are wanting your WTF, Interface, Screenshots, and Cache backed up. If you are not, remove what you don't want to back up. Since you can easily redownload addons, to save space, it may be best just to backup your WTF file.
:: Backs up the WTF folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\WTF - %datetimestamp%.zip" "%wowdir%\WTF" -mx9
:: Backs up the INTERFACE folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\Interface - %datetimestamp%.zip" "%wowdir%\interface" -mx9
:: Backs up the SCREENSHOTS folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\Screenshots - %datetimestamp%.zip" "%wowdir%\screenshots" -mx9
:: Backs up the CACHE folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\cache - %datetimestamp%.zip" "%wowdir%\cache" -mx9
Now go to "File" > "Save As..." I named mine Installer. Make sure you save it as a .bat file (you will need to actually add the .bat at the end when naming it. Like "Backup.bat"). Place it in the WoW Auto Backup folder with the 7za.exe and 7za.dll. Now the batch part is complete.
At this time you can just double click on the batch file and run it anytime you want to back up your stuff.
Here's the full batch all together for easier copying.
ECHO OFF
@TITLE WoW Addon Backup
:: variables
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
SET year=%date:~-4,4%
SET month=%dt:~4,2%
SET day=%date:~-7,2%
SET hourMilitary=%time:~-11,2%
SET hourCivilian=%time:~7,2%
SET minutes=%time:~3,2%
if %month%==01 set monthname=Jan
if %month%==02 set monthname=Feb
if %month%==03 set monthname=Mar
if %month%==04 set monthname=Apr
if %month%==05 set monthname=May
if %month%==06 set monthname=Jun
if %month%==07 set monthname=Jul
if %month%==08 set monthname=Aug
if %month%==09 set monthname=Sep
if %month%==10 set monthname=Oct
if %month%==11 set monthname=Nov
if %month%==12 set monthname=Dec
SET datetimestamp=%year%%monthname%%day% @%hourMilitary%-%minutes%
:: -------------------------------------------------------------------|
:: Change the "G:\World of Warcraft\_retail_" to the location and version of your WoW folder
SET wowdir=G:\World of Warcraft\_retail_
:: Change the "U:\Dropbox\WoW Storage" to the location of the folder in dropbox you want to store your backups.
SET dropbox=U:\Dropbox\WoW Storage
:: -------------------------------------------------------------------|
SET addondir=%wowdir%\Interface\addons
SET dsktpdir=%userprofile%\Desktop\AddOns
:: Backs up the WTF folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\WTF - %datetimestamp%.zip" "%wowdir%\WTF" -mx9
:: Backs up the INTERFACE folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\Interface - %datetimestamp%.zip" "%wowdir%\interface" -mx9
:: Backs up the SCREENSHOTS folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\Screenshots - %datetimestamp%.zip" "%wowdir%\screenshots" -mx9
:: Backs up the CACHE folder and compresses it into a zip file with date stamp in the dropbox.
7za a -tzip "%dropbox%\cache - %datetimestamp%.zip" "%wowdir%\cache" -mx9
Automating your Backup
For this we are going to use the built in Task Scheduler. You can do a search for "Task Scheduler".
Select "New Folder..." and name it something like "World of Warcraft". This is to help keep you organized. Next select the folder and click "Create Task..."
Name the Task something that you will know what it is. For the guide I am naming it "Auto WoW Backup".
Next give it a description. This is so if a few months or so down the road you need to make any alterations you know what this is for.
Click on the "Triggers" tab.
Click on "New...". Fill out the trigger for when you want your backups to occur. For this guide I wanted it to backup every other week at 4AM on Tuesday.
Click "OK".
Click on the "Actions" tab.
Click on "New...". Fill out the trigger for what you want it to do. For this guide I wanted it run our batch file we created previously.
Click "OK".
Click "OK" again. Your Task is now scheduled and should at the time you set it to run. You can also test it out to make sure everything works by highlighting your task in the top box, and then selecting "Run" from the options on the right.
Credits
7-zip is Open Source extractor (c) by Igor Pavlov.
Notepad++ is free source code editor (c) Don Ho
WoW Auto Backup Command Copyright (C) 2014 Keldesh
GNU GPLv3
Closing
This is something I stress to all my friends and family who play. Backup your addons and settings prior to doing any updating or major changes. If something is messed up; you then will have your backup to fall back on. If you do not, you will not be able to restore your information. So make sure you are backing up addons and settings on a regular bases as well. It also does not hurt to have things backed up in multiple places such as using the
CurseForge App
or
Minion
and auto updating to your cloud storage.
[Get Wowhead]
高级会员
[$2]
[A Month]
[Enjoy an ad-free experience, unlock premium features, & support the site!]
评论
评论来自
Semp
You'll need to put this in a text file with a ".bat" extension. Example: WOWBACKUP.BAT
@echo off
:: Batch file that creates a uniquely named folder
:: for each backup in your Documents folder. The folder
:: name annotates the time and date of backup.
:: You will probably need to change the paths to your World
:: of Warcraft folder in the two lines at the end.
:: Run it manually or schedule it with Windows Task Scheduler.
:: Created by Semp@Zul'jin
REM Create the date and time elements.
for /f "tokens=1-7 delims=:/-, " %%i in ('echo exit^|cmd /q /k"prompt $d $t"') do (
for /f "tokens=2-4 delims=/-,() skip=1" %%a in ('echo.^|date') do (
set dow=%%i
set %%a=%%j
set %%b=%%k
set %%c=%%l
set hh=%%m
set min=%%n
set ss=%%o
)
)
set DEST="%USERPROFILE%\Documents\WowBackups\%yy%%mm%%dd%%hh%%min%%ss%"
IF NOT EXIST %DEST% MD %DEST%
ROBOCOPY /S /E /W:0 /R:0 "C:\World of Warcraft\_retail_\Interface" "%DEST%\Interface"
ROBOCOPY /S /E /W:0 /R:0 "C:\World of Warcraft\_retail_\WTF" "%DEST%\WTF"
(##RESPBREAK##)258##DELIM##Sas148##DELIM##
评论来自
letterlock
This works great for me! I was wondering if the task I set will just run when I log in, even if the computer isn't on when it triggers? So in your example above, if you logged in on a Tuesday at 9:00 am, would it still run the backup?
Thanks for a wonderful little guide!
评论来自
Djinnii
Thank you for this, personally I needed to put in a little work and a few tweaks. I found this script to work better for my needs as:
The method for setting the datetime is cleaner and makes more sense to those of us who aren't Americans. - It's also easier for filesystems and file explorers to work with and sort in the correct order.
Cleans up some of the unused variables in the OP's post. (I get why some of them are there, but not others....Probably layovers from previous versions.)
It works with the current version of 7-Zip (7-Zip 19.00 (2019-02-21) for Windows) which I am already using for other things.
The only thing its really missing is the ability to delete previous backups. (I'm personally not worried about that, but if anyone needs that, I can look into adding it)
I'm not sure that I care to backup the cache folder at all to be honest. It can rebuild once you login just fine. No vital information is stored there.
Backing up the screenshots folder on a regular basis via a zip archive is a little crazy to be honest in my opinion. Better just to use the built in Dropbox functionality to save those screenshots for you!
There is stuff in my Interface folder, but not in my addons folder that I care about. (such as icons, themeing and alternate interface styles/addons)
ECHO OFF
@TITLE WoW UI Backup
::This code is provided as is, and no guarantee is given that this code will preform in the desired way
:: -------------------------------------------------------------------|
:: Create a variable "datestamp" to be year-month-day. (EG: 2020-06-22 This just works better for listing files in the correct order)
for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i
set year=%fulldate:~0,4%
set month=%fulldate:~4,2%
set day=%fulldate:~6,2%
SET datetimestamp=%year%-%month%-%day%
:: -------------------------------------------------------------------|
:: Change the "C:\Games\World of Warcraft\_retail_" to the location of your WoW folder
SET wowdir=C:\Games\World of Warcraft\_retail_
:: Change the "G:\My Drive\Games\World of Warcraft\Backups" to the location of the folder in backupdir you want to store your backups.
SET backupdir=G:\My Drive\Games\World of Warcraft\Backups
:: -------------------------------------------------------------------|
:: I use 7zip for this, as I find it less intrusive than WinRAR and it provides suitble cross compatibility with any OS I might encounter while being vastly superior to a regular .zip file. Help with the command breakdown can be found here:
:: -
https://www.dotnetperls.com/7-zip-examples
:: -
https://sourceforge.net/projects/sevenzip/support
:: Backs up the WTF folder and compresses it into a zip file with date stamp in the backupdir.
7z a -t7z "%backupdir%\%datetimestamp%_WTF.7z" "%wowdir%\WTF" -mx9 -mmt
:: Backs up the INTERFACE folder and compresses it into a zip file with date stamp in the backupdir.
7z a -t7z "%backupdir%\%datetimestamp%_Interface.7z" "%wowdir%\Interface" -mx9 -mmt
At the end, you get a folder that looks more like this:
https://imgur.com/Etz4zd4
P.S It's worth noting that with this method, if you happen to run this script more than once a day, it will update the existing 7-Zip archive with any changes, rather than create a new one.
评论来自
WebGremlin
Thanks for sharing this. Initially I had an issue to get the task working in the Task Scheduler. I solved it by setting the "Start in (optional)" of the
task's action
to the directory of the bat file. Hope this helps someone.
贡献
在发表评论前,请留心以下提示:
您的评论必须为简体中文,否则将会被删除。
不知道如何发评论?参考我们的
格式指南
!
发表前最好先自行校对一次。
有问题可以访问我们的
论坛
来寻求帮助。
发表评论
你没有登录。
请登录
或者
注册账号
来添加你的评论。
使用下面的表格浏览您的截屏。
[Screenshots containing UI elements are generally declined on sight, the same goes for screenshots from the modelviewer or character selection screen.]
质量越高越好!
[Please review our
Screenshot Guidelines
before submitting!]
您没有登录。请
登录
后提交截屏。
将视频URL输入下列表格即可。
URL:
支持:仅限 YouTube
说明:您的视频需通过审核才能在站点上显示。
我们用
Wowhead 客户端
保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
它还维护WoW的一个插件
Wowhead Looter
, 在您游戏时采集数据!
它将
采集所得数据
上传至Wowhead,保证数据库时刻掌握最新信息!
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即
下载客户端
整装待发吧。
我们用 Wowhead 客户端保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即 下载客户端 整装待发吧。