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
1
Auth check + system resolved
2
For each file in files[] array:
3
If PREVIOUS exists — move to trash/ immediately (D107)
4
If CURRENT exists — rename to PREVIOUS
5
Copy live file to CURRENT
6
Results returned per file
Parameters
Field
Required
Description
token
required
Auth token
system
required
System code
files
required
JSON 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