Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1375:5c3702f60200 | 1376:ba1b4583c2d5 |
---|---|
41 end | 41 end |
42 end | 42 end |
43 end | 43 end |
44 | 44 |
45 local function backup_local(from,to) | 45 local function backup_local(from,to) |
46 local path = "site/private/local/backup" | 46 local dir = "site/private/local/" |
47 from = from.child(path) | 47 from = from.child(dir.."backup") |
48 to = to.child(path) | 48 to = to.child(dir.."restore") |
49 if from.exists() then | 49 if from.exists() then |
50 from.is_directory() or error(from.to_string().." isn't dir") | 50 from.is_directory() or error(from.to_string().." isn't dir") |
51 backup_all(from,to) | 51 backup_all(from,to) |
52 end | 52 end |
53 end | 53 end |