Re: copy a bunch of rile, then delete from source
- From: Cameron Simpson <cs@xxxxxxxxxx>
- Date: Fri, 11 Apr 2008 08:12:27 +1000
On 10Apr2008 16:12, Ugo Bellavance <ugob@xxxxxxxx> wrote:
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?
Yes. See the --remove-source-files option in "man rsync". It does
exactly what you are asking for.
Did you even bother to read "man rsync" before asking this question?
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- Re: copy a bunch of rile, then delete from source
- From: Ugo Bellavance
- Re: copy a bunch of rile, then delete from source
- References:
- copy a bunch of rile, then delete from source
- From: Ugo Bellavance
- copy a bunch of rile, then delete from source
- Prev by Date: Re: copy a bunch of rile, then delete from source
- Next by Date: Re: Case inSensitivity File system for Linux
- Previous by thread: Re: copy a bunch of rile, then delete from source
- Next by thread: Re: copy a bunch of rile, then delete from source
- Index(es):