Backup your Raspberry pi on (insert distro here)
Just 2 commands are needed for a fast and easy backup of your precious sd card.
Do it every once in a while and more importantly before huge changes.
sudo dd bs=4M if=/dev/mmcblk0 | gzip > /home/yourusername/yourbackupdircetory/image`date +%d%m%y`.gz
sudo gzip -dc /home/yourusername/yourbackupdircetory/image `yourneededdate`.gz | sudo dd bs=4M of=/dev/mmcblk0