Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Binhost maintenance advice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Aug 05, 2023 11:30 pm    Post subject: Binhost maintenance advice Reply with quote

Binhost n00b question. I could use advice on updating a binhost. After the initial run of my script that 1. produces a stage4, and 2. uses --buildpkg, I uploaded the binary pkgs to my server and my machines now successfully use them.

But for updating the binhost, should I leave the dir that the binary pkgs are put in alone and let subsequent runs update it? If I do that, what's the best way to sync my local binary repo with the one on my server? I'm not sure rsync -a is doing it in a way that is ideal for maintaining a binhost.

Or do I rm -rf the local repo, allowing it to be rebuilt from scratch, and then sync that with the repo on the server?

Maybe related to this: Is there an emerge option that says "Use --buildpkg only if there is a newer version of the pkg for which there is no existing binary"? I am reading the man page for emerge, but it is LONG.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Aug 06, 2023 10:56 am    Post subject: Reply with quote

audiodef,

I cheat. I just add things to my binhost, so I don't have this problem.

Its also possible to
Code:
eclean packages
which reduces the master packages to match the current repos, then pass rsync the --delete option.

I don't claim it's correct but i use
Code:
rsync -avHtr  --delete //var/cache/packages/ -e "ssh -6" roy@grytpype-thynne.org:/home/roy/public_html/BINHOSTS/gcc-13.x/armv8a/

Which keeps the public end in sync with my build box.

I only run
Code:
eclean packages
when I'm running out of HDD space.

There ace several --delete options. I think that means delete after the transfer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sun Aug 06, 2023 11:19 pm    Post subject: Reply with quote

Thanks, Neddy. I looked up those options in the man page, and then gave them a try. Those rsync options seem to work for me as well.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2014

PostPosted: Mon Aug 07, 2023 7:54 am    Post subject: Reply with quote

NeddySeagoon wrote:
... Its also possible to
Code:
eclean packages
which reduces the master packages to match the current repos, then pass rsync the --delete option. ...

FWIW, my habit is to run:
Code:
eclean packages --deep
eclean distfiles --deep

before each:
Code:
 emerge --sync
That way I can get back the previous versions if the next:
Code:
emerge --update
breaks something. For anything older, I use backups...
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum