Mercurial Hosting > luan
changeset 1376:ba1b4583c2d5
enable restore
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 11 Jul 2019 23:30:55 -0600 |
parents | 5c3702f60200 |
children | 4c9691d6288f |
files | src/luan/host/Backup.luan |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/host/Backup.luan Thu Jul 11 23:19:11 2019 -0600 +++ b/src/luan/host/Backup.luan Thu Jul 11 23:30:55 2019 -0600 @@ -43,9 +43,9 @@ end local function backup_local(from,to) - local path = "site/private/local/backup" - from = from.child(path) - to = to.child(path) + local dir = "site/private/local/" + from = from.child(dir.."backup") + to = to.child(dir.."restore") if from.exists() then from.is_directory() or error(from.to_string().." isn't dir") backup_all(from,to)