GithubHelp home page GithubHelp logo

dimitrisr / pi_backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aweijnitz/pi_backup

0.0 1.0 0.0 167 KB

Backup script for Raspberry Pi based on 'dd'.

License: The Unlicense

Shell 100.00%

pi_backup's Introduction

Backup script for Raspberry Pi

This script does an image backup of the Pi SD card using dd. It is not the most efficient method, but it creates a complete backup and it's easy to restore in case of complete card failure.

Installation

  • Clone this repo into the folder where you keep your housekeeping scripts.
  • Modify the DIR variable to point to your destination
  • Update services stop and start sections to reflect your installated services
  • Make executable. chmod +x backup.sh
  • Update crontab to run each it each night.

Example

Update /etc/crontab to run backup.sh as root every night at 3am

01 3 * * * root /home/pi/scripts/backup.sh

The backup took a little more than an hour on my first run (SD card to USB HDD).

CREDITS

This script started from http://raspberrypi.stackexchange.com/questions/5427/can-a-raspberry-pi-be-used-to-create-a-backup-of-itself which in turn started from http://www.raspberrypi.org/phpBB3/viewtopic.php?p=136912

2013-Sept-04

Merged in later comments from the original thread (the pv exists check) and added the backup.log

pi_backup's People

Contributors

aweijnitz avatar cornasdf avatar mahallon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.