WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: repo local mirror  (Read 1241 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 508
  • ~.~
repo local mirror
« on: October 21, 2022, 10:44:25 AM »

curently using the below script to D/L a local copy of repo file's
excluding iso,tcz,tce

so hopfuly just sources , build scripts , release's and repo menta data   

taking some htinds wrt space and mirror speed from this thread https://forum.tinycorelinux.net/index.php/topic,22462.msg140709.html#msg140709

and various other sources to craft the below rsync command

Code: [Select]
# find a local ish source
mirror_from=mirrors.dotsrc.org::tinycorelinux/

# create dirs
sudo mkdir -p tinycorelinux.net/{2..13}.x/{armv6,armv7,x86_64,x86}

# copy files ( total could be over 177 GB + )
# rsync -dtivhrl  --delete --exclude="*.tcz" --exclude="*.tce" --exclude="*.iso" --exclude="*/backup/*" $mirror_from ./tinycorelinux.net/



ftr : doc script now reports it has a 20gb conection on starting rsync !

Offline mocore

  • Hero Member
  • *****
  • Posts: 508
  • ~.~
Re: repo local mirror
« Reply #1 on: November 10, 2022, 10:29:51 AM »

added exclude for sce extentions !!

Code: [Select]
# find a local ish source
mirror_from=mirrors.dotsrc.org::tinycorelinux/

# create dirs
sudo mkdir -p tinycorelinux.net/{2..13}.x/{armv6,armv7,x86_64,x86}

# copy files ( total could be over 177 GB + )
# rsync -dtivhrl  --delete --exclude="*.tcz" --exclude="*.tce" --exclude="*.sce" --exclude="*.iso" --exclude="*/backup/*" $mirror_from ./tinycorelinux.net/