yttcom.net
Backend / Commands / BACKUP

BACKUP

v2.1 · 07/10/26 · systems/commands/BACKUP.php · POST
What it does
Per-file backup — CURRENT/PREVIOUS/trash rotation. Ask David before running.
Endpoint
https://yttcom.net/systems/commands/BACKUP.php
Execution — Step by Step
1Auth check + system resolved
2For each file in files[] array:
3If PREVIOUS exists — move to trash/ immediately (D107)
4If CURRENT exists — rename to PREVIOUS
5Copy live file to CURRENT
6Results returned per file
Parameters
FieldRequiredDescription
tokenrequiredAuth token
systemrequiredSystem code
filesrequiredJSON array of {item_name, path, type} — type = html-pages or applications
Returns
results per file — moved/copied status
Tier 2 Functions
build_roster()resolve_system()
Notes
Per-file only. CURRENT/PREVIOUS/trash rotation per D101/D105/D107. Ask David before running.
Backend Commands Hub Admin Master