All of lore.kernel.org
 help / color / mirror / Atom feed
From: r.marek@sh.cvut.cz (Rudolf Marek)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] snapshot generation
Date: Sat, 24 Jun 2006 22:23:55 +0000	[thread overview]
Message-ID: <449DBB7B.70109@sh.cvut.cz> (raw)
In-Reply-To: <449D304E.5070603@sh.cvut.cz>

Hi Jean,
> Thanks for working on this. We had this feature on the old lm-sensors
> site and it was very convenient for some users, so it would be nice to
> have it on the new site too.

It did not took too long -in the magnitude of minutes.

> I think the following part of your script can be improved:
> 
>> # create another local copies
>> cp -r "$WHICH" "$WHICH"-tmp
>> 	
>> # Recursively remove all .svn directories from folder k2
>> find "$WHICH"-tmp -name .svn -print0 | xargs -0 rm -rf
>>
>> # Create archive
>> tar czf "$WWW/$WHICH-r$NEW-$date.tar.gz" "$WHICH"/
> 
> First of all I guess you really meant "$WHICH"-tmp on the last line, or
> you will be archiving the copy which still has the .svn directories.
> But even then, this isn't really efficient, neither as disk space nor
> as processing time is concerned. Instead, you could tell tar not to
> pick the .svn directories:
> 
> tar czf "$WWW/$WHICH-r$NEW-$date.tar.gz" --exclude .svn "$WHICH"/

Yes you are correct. This part was based on original script and I was lazy to
change it. And made the mistake ;) I will try to fix it tomorrow/today. I think
there was already a midnight here...

Regards
Rudolf


  parent reply	other threads:[~2006-06-24 22:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-24 12:30 [lm-sensors] snapshot generation Rudolf Marek
2006-06-24 20:56 ` Jean Delvare
2006-06-24 22:23 ` Rudolf Marek [this message]
2006-06-24 22:47 ` Axel Thimm
2006-06-26 19:56 ` Jean Delvare
2006-06-27 10:20 ` Axel Thimm
2006-06-27 10:32 ` Michael Renzmann
2006-06-27 10:42 ` Michael Renzmann
2006-06-27 10:51 ` Axel Thimm
2006-06-27 10:53 ` Axel Thimm
2006-06-27 10:59 ` Axel Thimm
2006-06-27 20:25 ` Axel Thimm
2006-06-30  8:06 ` Rudolf Marek
2006-06-30 11:37 ` Jean Delvare
2006-06-30 11:50 ` Axel Thimm
2006-06-30 11:53 ` Axel Thimm
2006-08-13  8:18 ` Jean Delvare
2006-08-13  9:40 ` Axel Thimm
2006-08-14  5:49 ` Jean Delvare
2006-08-14  6:00 ` Axel Thimm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=449DBB7B.70109@sh.cvut.cz \
    --to=r.marek@sh.cvut.cz \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.