[ale] Rsync and renaming files

Richard Bronosky Richard at Bronosky.com
Tue Aug 4 21:42:17 EDT 2009


Make sure bash is keeping a .bash_history. That file updates after you
exit bash cleanly, so make sure you exit with 'exit' or ctrl-D and not
by closing your terminal. After you do all of you mv commands, exit,
then open the .bash_history in a text editor, clean it up, save it
with the .sh extension, email it. Done.

On 8/4/09, Andrew Grieser <agrieser at gmail.com> wrote:
> Hey all,
>
> I have a rather large project that is being kept in sync on two different
> servers via rsync. I would like to rename several files and directories,
> however I think rsync will simply delete the re-named files on the remote
> server and copy them over again. The filesizes are large enough (or rather
> the bandwidth low enough) that I really don't want this to happen.
>
> So I have two questions:
>
> 1) Is there a way for rsync to handle re-named files and directories in a
> smart way? ie without removing them?
>
> 2) Is there a way I can automatically turn an interactive bash session into
> a script, or provide some way to play it back (and execute it while playing
> back)? For example, I open a terminal, and 'mv' a bunch of files, grab the
> script that results, and send it to the remote server so that it can also be
> run on there?
>
> I don't have ssh access to the remote server, as it's actually rsync-ing
> from me. So I need to be able to send a script to the admin on the remote
> server.
>
> Ideas?
>
> Andrew
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>

-- 
Sent from my mobile device

.!# RichardBronosky #!.


More information about the Ale mailing list