Monday, June 29, 2015

How To Backup Your Pi

If you use your Pi often, like me, you know that it can be a pain to lose everything by reinstalling Raspbian whenever something breaks. To avoid this you can backup your home folder to save a copy of all of your work.

Time: 5 minutes.
Difficulty: Easy.

You will need:

  • A way to access your Pi.
  • A USB flash drive.
Steps:
  1. Open the command line and type sudo su. You will need to be a superuser to do this. The user Pi is by default.
  2. Type cd /home/
  3. Type tar czf pi_home.tar.gz pi
  4. Type exit to exit the superuser shell.
  5. Now move the file pi_home.tar.gz to your flash drive and you are finished. The file is located in your /home folder.

No comments:

Post a Comment