# Re: How do I do this in ruby?

**URL:** <https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/50635>\
**Category:** Ruby\
**Created:** [December 19, 2005, 12:32pm UTC](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/50635 "2005-12-19T12:32:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![piet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9adbd/32.png) [@piet](https://www.ruby-forum.com/u/piet)\
**Post date:** [December 19, 2005, 12:32pm UTC](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/50635/1 "2005-12-19T12:32:10Z")

</div>

You could make 2 scripts:

One that downloads the stats to your local db.  
One that deletes the new records it finds in your local db from your  
remote  
db, that way you’re sure nothing gets deleted from the online/remote db  
unless it really exists in your local db.

That’s how I’d do it (not really fancy, I know…)

Piet.
