Creating automatic Backup and Shrink script
Posted: Friday 22 March 2024 15:10
Afer my problems with Enever Energy Option and Token problems (wich resulted in faiiing Pi/Domoticz) https://www.domoticz.com/forum/viewtopic.php?t=42127 , i have been searching for methodes to backup running RPI/Domoticz i found several links and i used the following https://www.reddit.com/r/raspberry_pi/c ... ?rdt=65036 to create a running backup to a mounted NAS share https://raspberrypi-guide.github.io/fil ... rnal-drive .
Now i am able to make a IMG file/backup to remote location and shrink it to smaller format and this shrinked image can be restored to a SD card wich can boot a RPI again.
Now i want to make a automatic script, wich creartes an image once a week and after do a shrink and give the file a date-time stamp. It would be much appreciated to get some help as i dont have the right skills for this.
Now i am able to make a IMG file/backup to remote location and shrink it to smaller format and this shrinked image can be restored to a SD card wich can boot a RPI again.
Now i want to make a automatic script, wich creartes an image once a week and after do a shrink and give the file a date-time stamp. It would be much appreciated to get some help as i dont have the right skills for this.