WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to sync local mirror to repo.tinycorelinux.net?  (Read 4800 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
how to sync local mirror to repo.tinycorelinux.net?
« on: November 08, 2019, 08:56:05 AM »
I have a local Pure64 mirror that I periodically update with this command:

Code: [Select]
lftp -c "open http://distro.ibiblio.org/tinycorelinux/10.x/x86_64/tcz/; lcd /path/to/local/tcz; mirror --verbose --continue --delete --no-recursion"

But I've noticed that when juanito posts an extension, it becomes immediately available on http://repo.tinycorelinux.net while it takes a day or two to become available on http://distro.ibiblio.org. Therefore, I'd like to sync my local mirror directly to http://repo.tinycorelinux.net if possible.

This command does not work--lftp sees the remote tcz directory as empty for some reason:

Code: [Select]
lftp -c "open http://repo.tinycorelinux.net/10.x/x86_64/tcz/; lcd /path/to/local/tcz; mirror --verbose --continue --delete --no-recursion"

What's wrong with this command? What command should I use to sync my local mirror to http://repo.tinycorelinux.net?

P.S. The command downloads only the files that are new or have changed, so there is no strain on anyone's bandwidth.
« Last Edit: November 08, 2019, 09:09:45 AM by GNUser »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #1 on: November 08, 2019, 09:15:48 AM »
Hi GNUser
Use  rsync.  Here's an example for keeping a current list of  ,dep  files in your current directory:
Code: [Select]
rsync -dtivh --delete repo.tinycorelinux.net::tc/10.x/x86/tcz/*.dep .

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #2 on: November 08, 2019, 09:32:56 AM »
Hi, Rich. YES! Wow, that's beautiful. This does what I need:
Code: [Select]
rsync -dtivh --delete repo.tinycorelinux.net::tc/10.x/x86/tcz/ /path/to/local/tczGlad I asked. Many thanks!

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #3 on: November 08, 2019, 11:05:37 AM »
What does ::tc mean here?

I figure the :: indicates rsync daemon is running remotely, but I'm confused as to what the tc is doing there. Is it a username? Or maybe a module?
(Please pardon my ignorance, but I don't know much about rsync daemon--I'm only familiar with "local" and "remote shell" usage.)
« Last Edit: November 08, 2019, 11:19:27 AM by GNUser »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #4 on: November 08, 2019, 11:21:16 AM »
Hi GNUser
I don't remember the specifics of the command. I'm pretty sure I wound asking Google for help composing it.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #5 on: November 08, 2019, 11:23:05 AM »
Internet searches are not helping me crack it. Oh, well. I'll dig some more when I can.
If you remember why you put that there, please do tell. Cheers.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #6 on: November 08, 2019, 11:32:58 AM »
If I leave tc out, rsync spits out an error saying "the remote path must start with a module name not a /". I guess the rsync daemon running on repo.tinycorelinux.net has a module named tc.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #7 on: November 08, 2019, 01:26:54 PM »
Yes, it's just the name we gave for the rsync daemon module.
The only barriers that can stop you are the ones you create yourself.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #8 on: November 08, 2019, 01:52:36 PM »
Thank you, curaga. Always better to know than to suppose :)

Offline gadget42

  • Hero Member
  • *****
  • Posts: 819
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #9 on: November 06, 2022, 09:14:25 AM »
@Rich

which resource should we mirror if we decided to locally host a complete set of tcl for internal consumption?

saw this forum thread but didn't know if it was still the best way:
https://forum.tinycorelinux.net/index.php/topic,23315.0.html
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #10 on: November 06, 2022, 09:43:23 AM »
Hi gadget42
We generally try to discourage cloning entire repositories because
most of what you download you will never use.

The current x86 and x86_64 repos are about 5 and 10 Gigabytes respectively.
I recommend you select one of the large university hosted mirrors and spread
the download over a couple of weeks.

Offline TT

  • Newbie
  • *
  • Posts: 45
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #11 on: November 07, 2022, 11:48:16 AM »
The current x86 repo[] [is] about 5 [] Gigabytes respectively.
It looks like 32-bit TCL may fit with appropriate compression on a single cheap DVD disk with an open session. This way it can be distributed in offline communities and updated. Also as a dream lab for offline experiments and schools. May be it would be possible to consolidate, configure, and upload such a one-shot image somewhere on a file-sharing service? We have Africa, war-torn continental countries, you name it: https://forum.slitaz.org/topic/slitaz-future#post-49385

Offline TT

  • Newbie
  • *
  • Posts: 45
Re: how to sync local mirror to repo.tinycorelinux.net?
« Reply #12 on: November 09, 2022, 04:33:06 PM »