copy a bunch of rile, then delete from source

Phil Savoie psavoie1783 at rogers.com
Thu Apr 10 21:08:22 UTC 2008


Hi Ugo,

Why not do an md5sum on the completed .gz tarball before copying the 
again on the file once received before deleting the sourcde?

Phil

Ugo Bellavance wrote:
> Hi,
> 
>    Here is what I want to do:
> 
> - Copy a number of files (using a wildcard, like logapplication*.tar.gz) 
> from one server to another
> - Once done, I want to delete the files from the source server.
> 
> The first step is easy to do... ssh keys, cronjob, and scp.  However, 
> can I be sure that the file has been copied successfully?  I thought of 
> comparing md5sums source/destination before deleting the source.
> 
> Could rsync be of help?
> 
> Regards,
> 
> Ugo
> 




More information about the redhat-list mailing list