Repository navigation
Install on Windows
- Git for Windows, installed for all users. The service runs as LOCAL SERVICE and cannot use a per-user install.
- The GitHub token.
- The installer brings its own Node.js.
Run foundry-world-backup-X.Y.Z-setup.exe from the latest release. Administrator rights are asked for.
The wizard asks for:
- the Foundry user data folder (it guesses
C:\Users\<you>\AppData\Local\FoundryVTT), - the GitHub token,
- the admin page port (8484),
- automatic updates,
- the admin page password,
- the notification e-mail settings.
It then runs scripts\install-service.ps1, which
- copies the code to
C:\Program Files\FoundryWorldBackupand Node.js toC:\Program Files\FoundryWorldBackup-Node, - writes
env,config.jsonandadmin.jsontoC:\ProgramData\FoundryWorldBackup(administrators, SYSTEM and LOCAL SERVICE only), the git copies toC:\ProgramData\FoundryWorldBackup\state, logs to...\logs\service.log, - gives LOCAL SERVICE read access to the worlds folder (inherited by new worlds;
-GrantAccessrepeats that), - registers the scheduled task
FoundryWorldBackup(at boot, under LOCAL SERVICE), theFoundryWorldBackup-UpdateNowtask for "Update now" and, if asked, the dailyFoundryWorldBackup-Updatetask (SYSTEM), - opens the admin port in Windows Firewall for domain and private networks.
Running the installer again upgrades the code and keeps every setting.
Secrets go only through the environment:
set FOUNDRY_BACKUP_GITHUB_TOKEN=...
set FOUNDRY_BACKUP_ADMIN_PASSWORD=...
foundry-world-backup-X.Y.Z-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /FOUNDRYDATA=C:\Users\me\AppData\Local\FoundryVTT [/ADMINPORT=8484 /AUTOUPDATE=1 /NOTIFYEMAILS=... /SMTPHOST=... /SMTPPORT=... /SMTPSECURITY=... /SMTPUSER=... /SMTPFROM=...]The switches in brackets are optional.
Uninstall through Apps & features. A silent uninstall keeps the settings, token and state; /DELETEDATA=1 removes them.
Unpack foundry-world-backup-windows.zip and run .\scripts\install-service.ps1 -FoundryData <folder> from an elevated PowerShell (-SetAdminPassword, -SetNotify, -GrantAccess, -RenewAdminCert, -AutoUpdate, -Check, -UpdateNow, -Uninstall).
Dxcufgb's Workshop: every Foundry VTT project, video and changelog in one place · Support on Ko-fi · MIT License
Setting up
Using it
- How a Backup Works
- Restoring a World
- Installable World Backups
- Notifications and Daily Check
- Automatic Updates
Reference