Re: rsync

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: PLUG-discuss
Date:  
To: Main PLUG discussion list
Subject: Re: rsync
You have a permissions problem on your destination path.
rsync errors will be reported regardless of where you redirect them too.
PIPESTATUS will contain the exit code from rsync.
If it is zero (0) GOOD will print, otherwise it will not.
The question is what code is rsync exiting with.
Regardless of that 'code', you will still have the permission problem which
may or may not be relevant to your goal.
Do
md5sum ${SOURCE_FILE} ${TARGET_FILE}
If the md5sum is the same, fudget'bout it.

You can also use the '-c' option and (again) fudget'bout it...
YMMV
ET


Michael writes:

> Will the command:
> ( rsync -aWu --delete-before --progress /home/bmike1/Documents
> /media/bmike1/GORILLA64 2>&1 | tee RsyncErrorLog && exit $PIPESTATUS ) &&
> echo GOOD
>
> Prevent the following rsync error from appearing but put it into the file
> 'RsyncErrorLog'? or else echo 'GOOD'?
>
> rsync: mkstemp
> "/media/bmike1/GORILLA64/Documents/Business/Photography/PropertyPhotographing/.New
> service offered: Aerial Photography.L6lLdv" failed: Invalid argument (22)
> rsync error: some files/attrs were not transferred (see previous errors)
> (code 23) at main.c(1183) [sender=3.1.0]
>
>
> --
> :-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss