One for all,all for one.
2012年1月31日 星期二
Postgresql 備份
›
$ sudo -u postgres pg_dumpall > /backup/postgresql_all.sql Reference: 備份和恢復 波哥的IT私房菜: Postgresql DB 備份與還原
MySQL 備份
›
備份 schema $ mysqldump -u root -p --no-data dbname > schema.sql 備份單個資料庫 $ mysqldump --user=root -p --database --extended-insert=FAL...
git 指令
›
$ git init $ git clone http://git.example.com/project.git $ git pull $ git add . $ git commit -m 'initial' $ git push ori...
2012年1月21日 星期六
bash script if / else / fi statements
›
Reference : Bash scripting Tutorial
Firefox 播放 QuickTime
›
# apt-get install mozilla-mplayer
bash script read file
›
FILE='/etc/passwd' x=0 while [ $x -lt $(cat $FILE | wc -l) ] do let x=x+1 head -n $x $FILE | tail -n 1 done $ while ...
bash script array
›
Reference : 瘋狂帽客's Blog: bash下array的幾種使用方法
‹
›
首頁
查看網路版