View Code? Open in Web Editor
NEW
π« [CS312] UNIX Final Project
License: MIT License
Shell 40.96%
Python 59.04%
autobackup's Introduction
π Hi, I'm Eric!
- π¨βπ» A programmer who loves the beauty of PHP;
- π± A writer who likes to share something with people;
- π° SAT. KNOWLEDGE, Senior developer, 2020/03/10 ~ Present
- π§ GoodLinker, developer, 2018/02/12 ~ 2020/03/10
- π₯― 5breakfast, chatbot developer, 2017/10/23 ~ 2018/12/10
- π― δΈθ―ζ°εζ΅·θ»ιΈζ°ι, δΊε
΅ 2017/6/28 ~ 2017/10/19
- π¨βπ» η«Ήθ²ζηζΈδ½θ‘δ»½ζιε
¬εΈ, developer, 2017/3/19 ~ 2017/10/1
autobackup's People
autobackup's Issues
".config" There is a line "DESTDIR = Path"
def python():
cmd = "apt-get install python-pip"
ιεζζη€Ίζ²ζζ¬ι
line 93&75
def vim()
cmd = "cp -p" + path[1] + "/vim ~/.vimrc"
def git()
cmd = "cp -p" + path[1] + "/git ~/.gitconfig"
ι£ε backup ε recovery.py ιε§ζε₯ζ什
cmd = "cat .config"
ιεθ¦ζΉζη΅ε°θ·―εΎ
backup.py need read config path...
Because it is with "ps" to prompt the user to restore the environment to which
So do string processing
Vim backup is not implemented
git checkout hash filename
vim_plugins = open('.vimrc', 'r')
for line in vim_plugins:
if line == "Plugin \'Valloric/YouCompleteMe\'"οΌ
***
cmd = "sudo apt-get install build-essential cmake"
result = subprocess.check_output(cmd, shell=True)
cmd = "sudo apt-get install python-dev python3-dev"
result = subprocess.check_output(cmd, shell=True)
cmd = "cd -"
result = subprocess.check_output(cmd, shell=True)
cmd = "cd ~/.vim/bundle/YouCompleteMe"
result = subprocess.check_output(cmd, shell=True)
cmd = "./install.py --all"
result = subprocess.check_output(cmd, shell=True)
***
print "YES!"
break
vim_plugins.close()