Re: taking advantage of filles in folder other than destination

This is a discussion on Re: taking advantage of filles in folder other than destination within the Rsync forums, part of the Networking and Network Related category; Thanks again Paul, I found a solution last night. The following command works, rsync -az --compare-dest=../20080101/ 20080102/ rsync://&...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-06-2008
rssrik
 
Posts: n/a
Default Re: taking advantage of filles in folder other than destination


Thanks again Paul,

I found a solution last night. The following command works,
rsync -az --compare-dest=../20080101/ 20080102/
rsync://<REMOTEHOST>/<SHARENAME>/<20080102>/

On adding / to the source directory name, only the contents of that
directory gets created in the target. The workaround is to directly specify
the required Directory Name in the TARGET URL itself.

When using Directory Names without /, compare-dest does not work.
# This transfers the whole file <compare dest doesnot work>
rsync -az --compare-dest=../20080101 20080102
rsync://<REMOTEHOST>/<SHARENAME>/

# This compares the file but the directory 20080102 is not created in TARGET
rsync -az --compare-dest=../20080101 20080102
rsync://<REMOTEHOST>/<SHARENAME>/

One more request, is there any document which explains the syntax of rsync
and its params in detail. It could be more useful, If you link me to one
<with man pages I couldnt get the syntax correctly>.

Paul ji, thanks again for your most valuable time,
rssrik




Paul Slootman-5 wrote:
>
> On Mon 05 May 2008, rssrik wrote:
>
>> Thanks paul,
>>
>> but the requirement is to upload to the backup server (from database
>> server),
>>
>> "rsync -a --compare-dest=../$YESTERDAYS_BACKUP $TODAY $REMOTESOURCE
>> #change the src and dest"

>
> 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
> already showed).
>
> 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/
>>
>> this command does not seem to work for me !! I mean that the whole file
>> is
>> getting transferred !

>
> How do you know? Show some stats.
>
>
> Paul Slootman
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
>


--
View this message in context: http://www.nabble.com/taking-advanta...p17071588.html
Sent from the Samba - rsync mailing list archive at Nabble.com.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0