Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Written by LDShadowLord
- --Verson 1.0
- --NOTES:
- --This program assumes you have a disk. If you don't then it WILL throw errors! It also assumes that the program you are entering is a real program!
- tArgs = {...}
- FDest = "disk/.backup/bkup-"..tArgs[1])
- if disk/.backup == false then
- fs.makeDir(disk/.backup)
- else
- if tArgs[1] == "askforhelp" then
- print("Use the command backup <Programname> to backup a file. by default it will backup into a disk folder")
- else
- fs.copy(tArgs[1], FDest)
- print(tArgs[1].." Has been backed up to "..FDest)
- end
Advertisement
Add Comment
Please, Sign In to add comment