Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

In general it's sufficient to backup your raspberryonce a week and keep a given number of backups. If you want to keep a longer history of your backups - i.e. use an intelligent backup strategy - use raspiBackup with a wrapperscript. That way you have the last 7 daily backups of the week, the last 4 weekly backups of the month, the last 12 monthly backups of the year for the last years.

 

First install and configure raspiBackup. See this page for details. When you managed to create a dd backup download raspiBackupWrapper.sh from github

wget https://github.com/framps/raspiBackup/blob/master/helper/raspiBackup7412.sh

sudo mv ./raspiBackup7412.sh /usr/local/bin

sudo chmod +x /usr/local/bin/raspiBackup7412.sh

Now test raspiBackup7412.sh

sudo raspiBackup7412.sh

Finally change /etc/cron.d/raspiBackup

00 05 * * 0 root /usr/local/bin/raspiBackup.sh

to create a backup every day

00 05 * * * root /usr/local/bin/raspiBackup7412.sh

That's it :-)

Add comment

Note

Spam comments are purged and not published. Review is done manually and therefore it usually takes between some hours and one day until a comment will be published.