As a non yocto professional I will answer :-)
The answer is yes to all questions. So it is up to you. Copying .git directories will copy also the repos.
Build/tmp is a subject to deletion on my setup on a regular time basis. Sstate-cache will be good to keep it but...it this will be nonworking machine you can delete it also...And don't forget to setup cron or another command scheduler to pull the changes you commit from working machine to the backup one.
I hope this will help :-)
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Edward Wingate
Sent: Friday, December 07, 2018 2:24 AM
Subject: [EXTERNAL] [yocto] Duplicating a build configuration
I have configured Yocto to build a jethro distribution that I've been using for the past 3 years. I want to duplicate this configuration on another computer as a backup build machine. I could just copy over the poky directory and all my layers, but I think this would copy over unnecessary files (build/tmp, old build artifacts?).
What would be the best way to make this backup computer be capable of generating the same distribution? Some of my layers are on the jethro branch, and others on the master branch. Should I just configure from scratch (git clone all the layers, set all the right branches)? Or is there a better way? Could/should I reuse the download mirror or the sstate cache on the original machine?
Thanks for your help/suggestions.
yocto mailing list
The information in this email is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this email in error please notify the sender by return e-mail, delete this email, and refrain from any disclosure or action based on the information.