Simple and effective batch script to back up your SillyTavern data and settings effortlessly. Just download, drop it into your SillyTavern folder, run the script, and the backup will be created.
Backup.bat
is a simple and effective batch script designed exclusively for Windows. As a Batch file, it takes advantage of Windows functionalities to keep your SillyTavern data safe. It efficiently packs your crucial files into a compressed format using either 7-Zip or built-in compression.
-
Windows Only: This script is designed exclusively for Windows operating systems. Due to its nature as a Batch file, it will not work on other operating systems.
-
Install 7-Zip: 7-Zip is used for compression. Download it here (.msi installer). If 7-Zip is not available, the backup script will try using a built-in Windows compression tool to create a ZIP file with the same functionality. This requires you to run the script in a recent version of PowerShell and can be buggy.
-
Location Matters: Place the
Backup.bat
file in your SillyTavern folder.
-
Download and Place:
- Get
Backup.bat
, a straightforward batch script for securing your SillyTavern data. - Download it directly here. You can right click the link and 'Save As...' to get the
Backup.bat
downloaded, or clone the repository. - Drop it into the SillyTavern folder.
- Get
-
Run the Batch File:
- Double-click
Backup.bat
. - Alternatively, open a command prompt, navigate to SillyTavern with
cd
, typeBackup.bat
, and hit Enter. - When it's completed it will look something like this if you have your terminal open:
- Double-click
7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
Scanning the drive:
79 folders, 622 files, 285080677 bytes (272 MiB)
Creating archive: C:\SillyTavern\user-backups\backup_20240204_0416.7z
Add new data to archive: 79 folders, 622 files, 285080677 bytes (272 MiB)
Files read from disk: 617
Archive size: 270268216 bytes (258 MiB)
Everything is Ok
-
Locate Your Backup:
- Look in SillyTavern for a new folder called
user-backups
. - Inside, find a file named like
backup_YYYYMMDD_HHMM.7z
orbackup_YYYYMMDD_HHMM.zip
.
- Look in SillyTavern for a new folder called
-
Check and Customize:
- The batch file is super easy to read and simple to modify for your needs.
- Run it from inside the SillyTavern folder. It'll create
user-backups
if not already there.
Secure your SillyTavern world effortlessly! 🛡️