Backup and restore complete TYPO3 installation

Save the complete database:

mysqldump -u username -p databasename > dumpfilename.sql

Save the complete typo3 directory:

cd /var/www/
tar cvzf file.tar.gz typo3

Restore the database:

mysql -u root -p[root_password] [database_name] < dumpfilename.sql

Restore the complete typo3 directory:

mkdir /var/www/sitename.restore
cd /var/www/sitename.restore
tar xvzf file.tar.gz 

Ref:

~~LINKBACK~~

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.