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 paul, but the requirement is to upload to the backup server (from database server), "rsync -a --compare-dest=../$...


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 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"

this command does not seem to work for me !! I mean that the whole file is
getting transferred !

Any thoughts on this ?

Thanks again,
rssrik






Paul Slootman-5 wrote:
>
> On Mon 05 May 2008, rssrik wrote:
>
>> Suppose,
>>
>> 1. I have taken yesterdays dump in a folder named 04-05-08 in database
>> server
>> 2. I have rsynced the folder 04-05-08 to the backup server.
>> 3. I have taken today's dump in folder named 05-05-08 in database server.
>> 4. Now while doing rsync, I want rsync to compare the <database server's
>> 05-05-08/dump file> with the <04-05-08/dump file> which already exists
>> in
>> backup server. (then eventually, I want rsync to send only the
>> differences
>> and store the output in folder 05-05-08).
>>
>> Typicaly I want to take advantage of yesterday's file which already
>> present
>> in a different folder.
>>
>> Can anyone suggest a working method to implement this ? (I tried
>> --copy-dest
>> / --compare-dest .. but couldnt get it to work)

>
> Something like this should work...
>
> BASE=/backup/psql # edit for your situation
> REMOTESOURCE=dbhost::psqldumps/ # again, edit
> TODAY=`date +%d-%m-%y` # I prefer %Y-%m-%d, sorts better
> cd $BASE
> YESTERDAYS_BACKUP=`ls -td ??-??-?? | head -n 1`
> rsync -a --compare-dest=../$YESTERDAYS_BACKUP $REMOTESOURCE $TODAY/
>
>
> 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...p17061502.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:54 PM.


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