Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local file = tostring(tArgs[1])
- local command = tostring(tArgs[2])
- if command == "backup" then
- fs.delete("disk/" .. file)
- fs.copy(file, "disk/" .. file)
- elseif command == "restore" then
- fs.delete(file)
- fs.copy("disk/" .. file, file)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement