comparison examples/blog/src/private/tools/backup.luan @ 1216:5dbb552075ff

doctype
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 20 Mar 2018 15:27:08 -0600
parents e2eb55d86bb2
children
comparison
equal deleted inserted replaced
1215:d2da8bfa2013 1216:5dbb552075ff
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.zip(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 <!doctype html>
14 <html>
14 <body> 15 <body>
15 backed up to <a href="/private/local/backup.zip">/private/local/backup.zip</a> 16 backed up to <a href="/private/local/backup.zip">/private/local/backup.zip</a>
16 </body> 17 </body>
17 </html> 18 </html>
18 <% 19 <%
19 end 20 end