Installation
Composer
The recommended install path is Composer. Require the package in your TYPO3 project (also on Packagist and TER):
composer require codemacher/t3vault
T3Vault depends on codemacher/ (OpenTimestamps), which is pulled
in automatically from Packagist.
Provisioning of <web- runs via
typo3/ (InstallerScripts) on
composer install / update / dump-.
Standalone app provisioning
On every composer install / update / dump-,
T3Vault copies the standalone app into <web-.
- The configuration (
<project>/andvar/ t3vault/ config. local. php backup., outside the web root) is never overwritten; legacy copies insidepassword. php <web-are migrated automatically.dir>/ t3vault/ - Opening the T3Vault backend module also re-syncs that folder as a fallback.
After composer remove codemacher/, delete the leftover web copy
manually if it is still present:
rm -rf public/t3vault
Activation
- Activate the extension in the Extension Manager / Package Manager (Composer installs usually activate automatically).
- Open Admin Tools → T3Vault (module path
/module/; admin users only).tools/ t3vault - Set the standalone password when prompted (used for disaster recovery login outside the TYPO3 backend).
- In the T3Vault UI settings, set a backup encryption password (minimum 8 characters) before creating the first backup.
Important
Store the backup encryption password offline. Without it, encrypted ZIP parts cannot be restored. AES-ZIP does not hide file names or the directory tree — keep backups outside the web root.
Web root hardening
The standalone app is provisioned into the public web root
(<web-). The configuration with all secrets lives outside
the web root (<project>/, see Configuration), and so
does the ENABLE_ marker (see Enable marker); the app directory
still ships an Apache .htaccess that protects legacy
config. copies, legacy marker files, the installer templates
(*.) and any backup artifacts, and restricts the Api/
directory to Api/.
Warning
.htaccess files are ignored by nginx and Caddy. On those web
servers you MUST replicate the rules in the server configuration, otherwise
legacy config. copies, the installer templates and backup
files become publicly downloadable.
nginx equivalent (place inside the relevant server block). Use a plain
prefix location, not location ^~: ^~ stops nginx from evaluating
the server's \. location, so Api/ would be delivered
as a file instead of being executed:
location /t3vault/ {
# Protect legacy configuration/marker copies inside the web root.
location ~ ^/t3vault/(config\.local\.php|ENABLE_T3VAULT)$ { deny all; }
# The Api/ directory only exposes index.php – everything else
# (framework classes, installer templates) is read from disk by PHP.
location ~ ^/t3vault/Api/(?!index\.php) { deny all; }
# Never serve templates, logs, PHARs or backup artifacts as static files.
location ~ ^/t3vault/.*\.(tpl|log|sql|gz|zip|tar|phar)$ { deny all; }
# Security headers for the SPA shell (T3V-022). frame-ancestors does NOT
# fall back to default-src and must be set explicitly; 'self' allows the
# same-origin TYPO3 backend iframe. script-src is 'self' only (the shell
# loads bootstrap.js instead of an inline block); style-src keeps
# 'unsafe-inline' for MUI/Emotion's runtime styles.
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; font-src 'self' data:; object-src 'none'; base-uri 'none'; frame-ancestors 'self'" always;
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
}
For classic installations (project root equals the document root) the private
runtime directories var/ and .t3vault/ (configuration,
secrets, state and, by default, backups) are web-reachable and must be denied
as well:
location ^~ /var/t3vault/ { deny all; }
location ^~ /.t3vault/ { deny all; }
"Restore here" from the dashboard stages the backup archives and their
metadata directly in the document root next to installer.. Apache
blocks them through the .htaccess written for the restore; nginx needs
an explicit rule. Without it, T3Vault detects that the files are publicly
downloadable, removes them again and aborts the preparation:
location ~ ^/([^/]+\.(tar|zip|sql|gz|bz2)|MANIFEST\.json|integrity\.json[^/]*|integrity-meta\.json)$ {
deny all;
}
Additionally protect the backup target directory. The default
(<project-) already lives outside
public/; if you override backup, keep it outside the web
root.