Mercurial Hosting > luan
comparison core/src/luan/modules/host/backup.luan @ 749:85f5444fb7d4
add rcp lucene backup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 Jul 2016 01:18:01 -0600 |
parents | |
children | f172f1dff4b6 |
comparison
equal
deleted
inserted
replaced
748:de2418d11786 | 749:85f5444fb7d4 |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Io = require "luan:Io.luan" | |
4 local print = Io.print or error() | |
5 local uri = Io.uri or error() | |
6 local Hosting = require "luan:host/Hosting.luan" | |
7 | |
8 if #{...} ~= 2 then | |
9 Io.stderr.write "usage: luan luan:host/update.luan domain password\n" | |
10 return | |
11 end | |
12 | |
13 local domain, password = ... | |
14 | |
15 local zip = Hosting.caller(domain).lucene_backup(password) | |
16 uri("file:backup.zip").write(zip) | |
17 | |
18 print("backed up lucene from "..domain.." to backup.zip") |