comparison examples/blog/src/private/tools/backup.luan @ 789:e2eb55d86bb2

add http/tools
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Sep 2016 20:34:55 -0600
parents c38f6619feb9
children 5dbb552075ff
comparison
equal deleted inserted replaced
788:c9409e28daa2 789:e2eb55d86bb2
4 4
5 5
6 return function() 6 return function()
7 local backup = Io.uri "site:/private/local/backup.zip" 7 local backup = Io.uri "site:/private/local/backup.zip"
8 backup.delete() 8 backup.delete()
9 Db.backup(backup) 9 Db.zip(backup)
10 10
11 Io.stdout = Http.response.text_writer() 11 Io.stdout = Http.response.text_writer()
12 %> 12 %>
13 <html> 13 <html>
14 <body> 14 <body>