copy a bunch of rile, then delete from source
bruce
bedouglas at earthlink.net
Thu Apr 10 22:34:44 UTC 2008
hi...
there are multiple ways of doing this...
a simple approach:
create a list of the files
iterate through the list
for file a
copy from destination to source
get, compare the filesize,mdsum,etc for the
source, dest files
if the files match (size,hash,etc...)
delete the sourcefile
continue...
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Ugo Bellavance
Sent: Thursday, April 10, 2008 1:13 PM
To: redhat-list at redhat.com
Subject: copy a bunch of rile, then delete from source
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
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list