diff blog/src/private/tools/backup.luan @ 751:558740169005

improve file delete()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 Jul 2016 15:56:19 -0600
parents ca169567ce07
children
line wrap: on
line diff
--- a/blog/src/private/tools/backup.luan	Fri Jul 15 01:25:08 2016 -0600
+++ b/blog/src/private/tools/backup.luan	Fri Jul 15 15:56:19 2016 -0600
@@ -6,7 +6,7 @@
 return function()
 	local backup = Io.uri "site:/private/local/backup.zip"
 	backup.delete()
-	Db.backup(backup.to_string())
+	Db.backup(backup)
 
 	Io.stdout = Http.response.text_writer()
 	%>