|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Emergency UNIX and Linux Support !! Help Me!! Post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
rsync transferring multiple files issue
Hi, I want to specify multiple remote directories but want to transfer them in a single command with one connection with remote server. This avoids entering passwords repeatedly and is also efficient. e.g. rsync -vrt --size-only --delete user@host:/home/user1/dir1 user@host:/home/user1/dir2 user@host:/home/user1/dir3 .... local_dir/ I want to transfer dir1, dir2 and dir3 using the same connection. The above command will establish 3 connections. Is there way to achieve this? Code:
rsync -vrt --size-only --delete user@host:/home/user1/dir1,/home/user1/dir2,/home/user1/dir3 local_dir/ thanks, Sam Last edited by Yogesh Sawant; 12-10-2010 at 04:17 AM.. Reason: added code tags |
| Sponsored Links | |
|
|
|
#2
|
|||
|
|||
|
Why not rsync on the home directory directly? Code:
rsync -vrt --size-only --delete user@host:/home/user1 |
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
because I need to sync specific directories dir1, dir2.. under user1/.
|
|
#4
|
|||
|
|||
|
why dont you prefer scp command !
---------- Post updated at 06:05 AM ---------- Previous update was at 06:02 AM ---------- Asking for that sake of curiosity , is there any special reason for choosing rsync , please tell me that if any! |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
If you push the files from remote server, you just need one connection
ssh remote server Quote:
I'm not sure if the --delete option will work in this case |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Quote:
---------- Post updated at 03:34 PM ---------- Previous update was at 03:34 PM ---------- No I don't want to ssh to remote server. This will not work. |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Thanks for your explanation Sardare :-)
|
| Sponsored Links | ||
|
|
![]() |
| Tags |
| rsync |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script Pause Until Rsync Is Done Transferring | droppedonjapan | Shell Programming and Scripting | 4 | 06-01-2009 03:38 PM |
| Transferring files between Windows and AIX | Pennant Man | AIX | 7 | 01-05-2009 09:31 AM |
| RSYNC issue | jagnikam | Shell Programming and Scripting | 3 | 03-18-2008 11:30 AM |
| rsync issue | bag of hammers | UNIX for Dummies Questions & Answers | 2 | 10-23-2007 05:52 PM |
| Transferring hidden files with scp | matrixmadhan | UNIX for Dummies Questions & Answers | 13 | 01-16-2007 03:00 PM |
|
|