as some of you reported sd-card failures - today i thought maybe it could be good idea to set up a cronjob on my 2 feeding raspis that targzs some essential files each night and automatically sends them via sftp to my data server overnight. a backup of the whole system is not needed as i have already images of the feeder sd-cards.
what files/directories would you recommend (e.g. *.rrd files) are worth to be backed?
aaah - perfect - helps much did not find this via search function over the last days. there i can see what directories you backup. are there some kinds of logfiles from pi included?
aah - thanks - i remember some screen in your reconfigure utility …
beside these dump-logs there are only the one/two days logs from piaware - or have i missed some?
Your way of generating the ssh keys is definitely the best method but I use a handy program called sshpass that allows you to put the ssh password into the command (but that obviously isn’t recommended for security reasons).
The only thing you need to do manually before all this is ssh into the system once so it’s added to the knownhosts file, otherwise sshpass won’t work. Once that’s done it’ll happily feed the passwords to scp/ssh etc.