Posts Tagged ‘bash’

Starting to post snippets…

I like using the command line to program websites. So that’s why i’m starting a serie of useful bash-command-snippets: curl http://www.someserver.org/some.tar.gz|tar -xzf – this will download a tar.gz and will unzip it immediately…


Import / export mysql databases via bash

I’m looking for this commands regularly so that’s why i’m posting them here… export database: mysqldump –user=[Username] –password=[password] –all-databases | gzip -9 > db.sql.gz import the database again: mysql -u[Username] -p[Password] [Database] < db.sql.gz


“backup” a website via wget without ftp

Today only a short bash command: wget -r -nc http://www.some-website.com I needed to backup all images and stuff for making a relaunch without that the current web developer knows about it…  This will save all the content / images / documents that are available.


shell script to install wordpress from subversion

Hoi, i wrote a shell script to install wordpress from subversion. It installs 2.7.1 and prepares everything for a small blog /cms. You need a ready a to use wp-config.php in the same directory as the installer. The easiest way is to put all installations in one directory and use one database with different table [...]