You are not logged in.

#1 2020-01-23 20:22:06

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 394

Filter and move/list on content

I use apt-mirror, to mirror repository locally.
Unfortunately, the software is a little buggy, not properly maintained, lacks maintainer.

It is often the repo becomes inconsistent. For example, I often get html pages in response to communication problems.

In postmirror.sh I have added a row to list all html pages:
grep -irl -e "<! DOCTYPE html" /data/apt-mirror /mirror >> /data/apt-mirror/var/cron.log

Copies from the log and makes a cleanup script.
It takes a long time and requires manual work.

I wish a script based on "file" (or somethin alike), both moving html files to /data/apt-mirror/error and listing the moves in the log.

I've looked at alternatives to apt-mirror, for example aptly,but put it aside for now...

Last edited by rbh (2020-01-23 20:23:42)


// Regards rbh

Offline

#2 2020-01-23 20:51:17

damo
....moderator....
Registered: 2015-08-20
Posts: 5,967

Re: Filter and move/list on content

So is this a help request for a script? If so, it needs to be in a different forum section:

Scripts, Tutorials & Tips
A place to share tips, guides, application configurations and scripts.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2020-01-23 21:48:35

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 394

Re: Filter and move/list on content

damo wrote:

So is this a help request for a script?

Yes.

If so, it needs to be in a different forum section:


I can't se how to move the post. Maybe a user can't but a moderator?
Els, you want me to delete text and post in "System Administration" or "Help & Support (Other)"?


// Regards rbh

Offline

#4 2020-01-24 00:20:55

hhh
Meep!
Registered: 2015-09-17
Posts: 9,568
Website

Re: Filter and move/list on content

No, I'll just move the thread to, wait... what are y'all talking about?

reads thread

Moving to Scripts, Tutorials & Tips, adding [REQUEST] to the subject's Title.

Online

#5 2020-01-24 06:04:35

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,778
Website

Re: Filter and move/list on content

Well, this section is supposed to be for stuff that works, for people to browse through.

Requests for help with repo management should be in... "System Administration" maybe?

Last edited by johnraff (2020-01-25 01:58:47)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#6 2020-01-24 06:05:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,778
Website

Re: Filter and move/list on content

^done


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#7 2020-01-24 12:20:00

hhh
Meep!
Registered: 2015-09-17
Posts: 9,568
Website

Re: Filter and move/list on content

Thanks, @John. Sorry your thread got bounced around a bit there, @rbh.

Online

#8 2020-01-25 07:12:53

ohnonot
...again
Registered: 2015-09-29
Posts: 4,511
Website

Re: Filter and move/list on content

rbh wrote:

I use apt-mirror, to mirror repository locally.
Unfortunately, the software is a little buggy, not properly maintained, lacks maintainer.

It is often the repo becomes inconsistent. For example, I often get html pages in response to communication problems.

In postmirror.sh I have added a row to list all html pages:
grep -irl -e "<! DOCTYPE html" /data/apt-mirror /mirror >> /data/apt-mirror/var/cron.log

Copies from the log and makes a cleanup script.
It takes a long time and requires manual work.

I wish a script based on "file" (or somethin alike), both moving html files to /data/apt-mirror/error and listing the moves in the log.

Unless you find someone who is using apt-mirror, you are going to have to explain both the problem and your attempts at solving it in more (technical) detail.

I've looked at alternatives to apt-mirror, for example aptly,but put it aside for now...

Why is it an alternative, and why did you dismiss it?


BL quote proposals to this thread please.
how to ask smart questions | my repos / my repos | my blog
---
Thank you for posting direct image links!

Offline

Board footer

Powered by FluxBB