diff src/luan/modules/host/restore.luan @ 1567:349eef23a13c

lucene named backup
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 14 Nov 2020 20:05:07 -0700
parents 1a68fc55a80c
children
line wrap: on
line diff
--- a/src/luan/modules/host/restore.luan	Thu Nov 12 16:59:47 2020 -0700
+++ b/src/luan/modules/host/restore.luan	Sat Nov 14 20:05:07 2020 -0700
@@ -5,15 +5,15 @@
 local uri = Io.uri or error()
 local Hosting = require "luan:host/Hosting.luan"
 
-if #{...} ~= 2 then
-	Io.stderr.write "usage: luan luan:host/restore.luan domain password\n"
+if #{...} ~= 3 then
+	Io.stderr.write "usage: luan luan:host/restore.luan domain password name\n"
 	return
 end
 
-local domain, password = ...
+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,zip_file)
+Hosting.caller(domain).lucene_restore(password,name,zip_file)
 
 print("restored lucene from backup.zip to "..domain)