So now we’ll improve this script on several points. bin/cp /etc/app1/nf /home/pi/backupsĪs you can see it’s a basic script, that will overwrite the old backup each time. Then we need to create a backup folder to store the files:Īnd finally, the first version of a simple script could look like this: #!/bin/bash In my script I’ll use a file and a folder that you can adapt to your needs:
And finally, how to restore the files Scriptīefore starting to create the script, you have to identify the files you need to save.How to send the file on another computer (in the script or manually).How to schedule it if the files are modified.The first method you can use if you have a simple installation is to backup only the needed files.įor example, if you use your Raspberry Pi for a security camera, once you back up the configuration file, it’s ok, you don’t need more. If you are lost in all these new words and abbreviations, request my free Raspberry Pi glossary here (PDF format)! I’m a fan of their services personally □ Backup only the important files I highly recommend getting this offer now so that you can already learn a bunch of things in the next fortnight. It includes courses from the best teachers in many categories, including IT (Linux, programming, …) and Raspberry Pi. We will now see in detail how to do each one.īy the way, if you don’t have a budget to afford a course for now (if you just got your Raspberry Pi stuff, I completely understand), you can join Skillshare for a free 14-day trial.