Re: taking advantage of filles in folder other than destination
On Mon 05 May 2008, rssrik wrote:
> Thanks paul,
> but the requirement is to upload to the backup server (from database
> "rsync -a --compare-dest=../$YESTERDAYS_BACKUP $TODAY $REMOTESOURCE
> #change the src and dest"[/color]
As you don't show what you've put into those variables, notably
$REMOTESOURCE (which you should have renamed REMOTEDESTINATION),
the destination origin is probably one directory higher than you expect,
hence the relative compare-dest goes wrong.
I find it useful to explicitly end the destination with a slash (as I
Also, how does "$YESTERDAYS_BACKUP" get determined if you have no access
to the destination?
You'll probably need to add a slash to $TODAY and the destination:
rsync -a --compare-dest=../$YESTERDAYS_BACKUP $TODAY/ $REMOTEDESTINATION/[color=blue]
> this command does not seem to work for me !! I mean that the whole file is
> getting transferred ![/color]
How do you know? Show some stats.
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]