__/ [ 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....
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.
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