Mercurial Hosting > luan
view src/luan/modules/host/restore.luan @ 2046:e0896f65c847 acme-tiny
fix temp_dir_string initiation
| author | Violet7 |
|---|---|
| date | Sun, 09 Nov 2025 02:38:09 -0800 |
| parents | 349eef23a13c |
| children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local Io = require "luan:Io.luan" local print = Io.print or error() local uri = Io.uri or error() local Hosting = require "luan:host/Hosting.luan" if #{...} ~= 3 then Io.stderr.write "usage: luan luan:host/restore.luan domain password name\n" return end local domain, password, name = ... local zip_file = uri("file:backup.zip") zip_file.exists() or error "backup.zip not found" Hosting.caller(domain).lucene_restore(password,name,zip_file) print("restored lucene from backup.zip to "..domain)
