Skip to content

Manual Setup

Chris Diana edited this page Mar 29, 2020 · 3 revisions

1. Prepare SD Card

  • Download the latest Raspbian Lite.
  • Flash the Raspian image to your Micro SD card. Etcher is a great choice.
  • Pop the SD into your Pi Zero and boot it up.

2. Configure the Pi

  • Login using the default password raspberry.
  • Run sudo raspi-config
  • Inside the configuration menu you'll probably want to change your password using Option 1 (Change User Password). Then, navigate back the the main screen.
  • Next, you'll want to connect to the internet. Select Option 2 (Network Options) and then select N2 Wi-fi to enter your network name and password.
  • Navigate back to the main screen and click <Finish> to exit the configuration menu.
  • It should then prompt you to reboot your Pi Zero. If not, reboot it using sudo reboot.

3. Setup OPZgo

Once booted back up, run the following commands to setup OPZgo:

$ sudo apt-get update
$ sudo apt-get install git
$ git clone https://github.com/chrisdiana/OPZgo.git
$ sudo sh OPZgo/setup.sh

Finally we're going to make the script run every time the Pi Zero starts.

$ sudo nano /etc/rc.local

Add a new line sudo python3 /home/pi/OPZgo/opzgo.py & (towards the end of the file, before the exit statement) and then save. Now you can unplug your Pi as it's ready to start making backups!

Accessing Backups

By default, backups will be saved to /opzgo/backups/. Within that folder, backups are saved as timestamped directories each time you trigger a backup. You can access them by either SSH'ing into the Pi or by using a convenient tool like Cyberduck to easily connect to your Pi and interact like you would a FTP server.

You can change the backup location by passing the location as an argument. For example, if you wanted to save backups to /boot so you can easily access them through the SD card edit your /etc/rc.local file and change the command to sudo python3 /home/pi/OPZgo/opzgo.py /boot/opzgo &.

Resizing the /boot partition

If you are saving files to /boot instead of the root file system, you may want to expand the partion to allow for more backups. Check out this tutorial in order to do this.

Clone this wiki locally