View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Sat Aug 05, 2023 11:30 pm Post subject: Binhost maintenance advice |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sun Aug 06, 2023 10:56 am Post subject: |
|
|
audiodef,
I cheat. I just add things to my binhost, so I don't have this problem.
Its also possible to 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 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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2014
|
Posted: Mon Aug 07, 2023 7:54 am Post subject: |
|
|
NeddySeagoon wrote: | ... Its also possible to 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: That way I can get back the previous versions if the next: breaks something. For anything older, I use backups... _________________ Greybeard |
|
Back to top |
|
|
|