Mercurial Hosting > luan
diff src/luan/host/Backup.luan @ 1376:ba1b4583c2d5
enable restore
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 11 Jul 2019 23:30:55 -0600 |
parents | 72b699bad1a4 |
children |
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)