ftl-fetch-module-remote-to-local

Status: IN

The `fetch` module copies files FROM remote hosts TO the control machine — the reverse of `copy`. Used for downloading backups and logs.

Source: repo:ftl2-servercraft/ftl2_servercraft/scripts/neoforge.py

Example

await ftl.minecraft.fetch(
    src=f"/home/{admin}/backups/{backup_name}.tar.gz",
    dest=str(local_backup_dir) + "/",
    flat=True,
)

JSON