Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: bwalton@artsci.utoronto.ca (Ben Walton)
Subject: [sup-talk] Backups ?
Date: Tue, 07 Jul 2009 12:10:42 -0400	[thread overview]
Message-ID: <1246982848-sup-5820@ntdws12.chass.utoronto.ca> (raw)
In-Reply-To: <20090707112635.14736pk1mxi8r9k4@webmail.seas.upenn.edu>

Excerpts from wagnerdm's message of Tue Jul 07 11:26:35 -0400 2009:
> >   ls -1t "$dump_dir"/sup-dumps-* | { read; read; read; read; cat } | xargs rm
> 
> "{ read; read; read; read; cat }" could probably better be done as  
> "tail +5"; makes it easier to adjust to people's choice of backup  


Or:

DAYS=5
find $dump_dir -mtime +${DAYS} -name "*sup-dumps-*" -print0 | xargs -0 --no-run-if-empty rm

(adjust xargs options to suit your environment...I don't think
--no-run-if-empty is all that portable.)

-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090707/e4d9cdb7/attachment.bin>


  reply	other threads:[~2009-07-07 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07 13:08 Marc Weber
2009-07-07 15:26 ` wagnerdm at seas.upenn.edu
2009-07-07 16:10   ` Ben Walton [this message]
2009-07-07 16:19   ` Ingmar Vanhassel

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=1246982848-sup-5820@ntdws12.chass.utoronto.ca \
    --to=bwalton@artsci.utoronto.ca \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox