GithubHelp home page GithubHelp logo

rpi-backup's Introduction

RPi-BackUp

我根据原作者项目Issue做了一小部分更新,Debug原来无法完成备份的问题(NoSpace Space)

树莓派系统备份脚本

一、测试系统

1、2020-02-13-raspbian-buster-lite (成功)

2、ubuntu-20.04-preinstalled-server-arm64 (成功)

3、ubuntu-18.04-desktop-arm64 (成功)

4、2019-12-30-OPENFANS-Debian-Buster-Aarch64-ext4-v2019-2.0-U2-Release-plus++ (成功)

二、back.sh(备份脚本,需要root权限)

用法:sudo bash back.sh xxx.img (xxx.img为备份文件名,自行修改)

1. 备份镜像大小计算:(boot分区全部 + root分区已使用) * 1.2

2. 如果sd卡剩余空间充足,可以备份到卡内,如果剩余空间有限,请备份到外部设备

3. 如果需要备份到外部设备,设备务必挂载到/media,不要挂载到/mnt,因为创建的镜像会挂载到/mnt进行操作

三、resize.sh(扩容脚本,需要root权限)

用法:恢复系统后执行 sudo bash resize.sh 扩容root分区,也可以用树莓派raspi-config进行扩容

四、参考资料

  1. https://blog.csdn.net/lzjsqn/article/details/72058293
  2. 4.14.114-OPENFANS+20190602-v8 64位debain系统 /usr/sbin/resize.root 脚本

rpi-backup's People

Contributors

nanhantianyi avatar tang617 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.