Coder Social home page Coder Social logo

rpi-backup's Introduction

在linux虚拟机上备份树莓派镜像

back.sh 备份脚本

1 在官网https://www.raspberrypi.org/downloads/raspbian/ 下载Raspbian Stretch Lite
2 安装vm虚拟机
3 安装Raspbian系统,系统内存应大于需要备份镜像的3倍,建议30G以上
4 将需要备份的镜像sd卡插到电脑上(用读卡器)
5 将rpi-backup克隆到虚拟机里
6 df -h查看sd卡是否挂载为sdb,如果不是要修改代码里sdb相应的地方
7 sudo chmod +x rpi-backup
8 sudo ./rpi-backup

expand_sd.sh 自动扩容脚本

1 将此脚本设置为开机自启且添加可执行权限
2 通过backup备份后,备份后的镜像就会自动扩容

未完成

1 镜像备份到u盘(非本机)
2 树莓派本身系统备份(非u盘)
3 自动识别要备份的u盘系统(优化步骤6)

rpi-backup's People

Contributors

aiden-wei avatar

Stargazers

 avatar

Forkers

nnnnyue

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.