All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] snapshot generation
Date: Sat, 24 Jun 2006 20:56:28 +0000	[thread overview]
Message-ID: <20060624225628.fc766e49.khali@linux-fr.org> (raw)
In-Reply-To: <449D304E.5070603@sh.cvut.cz>

Hi Rudolf,

> I'm attaching a script that creates snapshots from SVN. It seems there is no
> crontab available on the server, so I'm asking you kindly to run it somewhere.
> 
> The script is fairly simple, it just needs to know the target dir, plus the dir
> where will be the script/temp repo placed. Check first few lines of script please
> 
> It may be executed with lm-sensors or i2c as parameter. We would like to have
> daily snapshots for lm-sensors and weekly for i2c if possible.
> 
> I tested the script briefly and it seems to work.

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.

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"/

So you don't have to duplicate the tree.

Thanks,
-- 
Jean Delvare


  reply	other threads:[~2006-06-24 20:56 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 [this message]
2006-06-24 22:23 ` Rudolf Marek
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=20060624225628.fc766e49.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --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.