Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: rsync move?

  • Subject: Re: rsync move?
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Tue, 16 May 2006 08:30:42 +0100
  • Newsgroups: comp.os.linux.misc
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <pan.2006.05.16.01.37.43.89092@NsOeSiPnAeMr.com> <44693070.9D1A7C43@yahoo.com> <pan.2006.05.16.02.18.57.16373@NsOeSiPnAeMr.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ Captain Dondo ] on Tuesday 16 May 2006 03:18 \__

> On Mon, 15 May 2006 21:52:48 -0400, CBFalconer wrote:
> 
>> Captain Dondo wrote:
>>> 
>>> Is there anything like an rsync move?
>>> 
>>> I want to safely move files across a network; once the receiving
>>> end has verified that the copy has been received, I need for it to
>>> be deleted on the source....
>>> 
>>> This needs to be automated, as the source computer has no user
>>> interface at all....
>> 
>> What defines 'safely'?  You might send the file, have the receiver
>> compute an MD5sum on it and return that.  If that matches the
>> locally computed MD5sum delete the source.
> 
> That's exactly the algorithm I had in mind...
> 
>> Write a script.
> 
> I'm lazy. :-)  Actually, I was hoping someone might have incorporated this
> into an rsync-type app....  Space is limited on my source computer, so the
> fewer discrete apps I have the better....
> 
> --Yan 

rsync -r  /my-warez you@safe-haven:/my-treasure-spot; rm -rf /my-warez; echo
'aye aye, sir!'

Assumes rsync coughs out no errors in the process, so add a condition.

Best wishes,

Roy

-- 
Roy S. Schestowitz      |    Download Othello: http://othellomaster.com
http://Schestowitz.com  |     GNU/Linux     ¦     PGP-Key: 0x74572E8E
  8:25am  up 18 days 15:22,  8 users,  load average: 0.82, 0.55, 0.47
      http://iuron.com - next generation of search paradigms

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index