Skip to content

coresolutiondoteu/pi4-rsync-backup-shell-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

pi4-rsync-backup-shell-script

Personal script for backing up Raspberry Pi4 to USB HDD

If you do not like it, I will be happy to hear why and how to make script better.

Prerequisities:

  1. Raspberry Pi4 4GB minimum with enough free RAM (3GB minimum), or you can change script to use the same USB drive for creating the tar.gz from your Backup folder inside the drive it self and do not copy compressed data from RAM drive to USB drive

  2. USB HDD must have a partition called PrcekBlue OR you can find "PrcekBlue" in "backup.sh" and chage it to fit your partition LABEL on USB drive

  3. Your backup must fit into 3GB total compressed - it will create RAM disk with 3GB to store compressed data from folder Backup on USB drive after rsync backup

What needs to be done:

  1. Copy the script "backup.sh" to your favourite folder (I am using "/home/pi4") and run:

sudo cp backup.sh /home/pi4

  1. Set script permissions

sudo chmod a+x backup.sh

  1. Copy also "rsync-exclude.txt" to /usr/bin/rsync-exclude.txt

sudo cp rsync-exclude.txt /usr/bin/rsync-exclude.txt

  1. Edit script to fit your needs

sudo nano backup.sh

  1. Run the script

sudo ./backup.sh

About

Personal script for backing up pi4 to USB HDD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages