comparison examples/blog/src/private/tools/backup.html.luan @ 1429:82415c9c0015

move versioning into Lucene
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 24 Nov 2019 23:07:21 -0700
parents 4721c482c86b
children
comparison
equal deleted inserted replaced
1428:d21a7cf8fa9e 1429:82415c9c0015
1 local Luan = require "luan:Luan.luan" 1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error 2 local error = Luan.error
3 local Io = require "luan:Io.luan" 3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan" 4 local Http = require "luan:http/Http.luan"
5 local db = require("site:/lib/Db.luan").db or error() 5 local Db = require "site:/lib/Db.luan"
6 6
7 7
8 return function() 8 return function()
9 local backup = Io.uri "site:/private/local/backup.zip" 9 local backup = Io.uri "site:/private/local/backup.zip"
10 backup.delete() 10 backup.delete()
11 db.zip(backup) 11 Db.zip(backup)
12 12
13 Io.stdout = Http.response.text_writer() 13 Io.stdout = Http.response.text_writer()
14 %> 14 %>
15 <!doctype html> 15 <!doctype html>
16 <html> 16 <html>