The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Copying missing messages
Author: Dan 
Date:   21-05-12 13:58

When there is a problem on FreshPorts, one of the other mirror systems will have the missing messages. There is a regular diff run which compares the systems. The solution: find that diff, extract the message id of the missing commits, grep for the file containing that message id, and scp the files over.

grep '^< ' diff.txt | awk '{print $2}' | xargs -n 1 -J % grep -lr % ~/FreshPorts/freshports.org/msgs/FreeBSD/recent/*.raw | xargs -n 1 -J % scp -P 19541 % dan@supernews:~/tmp/MSGS

--
Webmaster

Post Edited (21-05-12 14:26)

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Copying missing messages   new
Dan 21-05-12 13:58 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org