rsync multiple remote directories one connection


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting rsync multiple remote directories one connection
# 1  
Old 03-11-2010
rsync multiple remote directories one connection

Hi,

I want to specify multiple remote directories but want to transfer them in a single command with one connection with remote server.

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?

thanks,
Sam
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copy local files to single remote host but multiple folders using rsync

I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command. Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles" rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies

2. Shell Programming and Scripting

Ssh to validate multiple remote hosts connection validation.

Dear Folks, I am trying to read a config file contains ip and port numbers. i want to read each line of the config file and check ssh connection is happening or not. Kindly guide. Config file: abc@1.2.342 22 abc@1.2.343 22 abc@1.2.344 22 abc@1.2.345 22... (9 Replies)
Discussion started by: sadique.manzar
9 Replies

3. Shell Programming and Scripting

Rsync of several directories

Dear all, I am writing a script to backup a big quantity of directories from one laptop to a server. In a script on the server, I have a loop in bash like this: for SRC_DIR in "$LIST_OF_DIR_TO_BACKUP" ; do rsync -av user@laptop:/home/user/$SRC_DIR /home/user/backup done As I said... (2 Replies)
Discussion started by: freddie50
2 Replies

4. Shell Programming and Scripting

scp or rsync multiple files in parallel from a remote host

Hi. I'm trying to speed up an rsync command by running it in parallel. There's no real option for this other than if the files are in multiple directories (which they're not). And even then there's no way of knowing if rsync has succeeded as the process is running in the background .. and... (4 Replies)
Discussion started by: Big_Jeffrey
4 Replies

5. UNIX for Dummies Questions & Answers

Rsync on Cygwin - Restrict user to several directories

Hi, I'm using rsync on cygwin (winXP) to sync our files between several laptops and XP (acting as a file server) For simplicity I use the same user account with different certificates over SSH. Now my question is; If a user understands the logic and modifies the rsync command, he can easily... (0 Replies)
Discussion started by: cemo
0 Replies

6. UNIX for Dummies Questions & Answers

Deleting multiple directories inside multiple directories

Hi, Very unfamiliar with unix/linux stuff. Our admin is on vacation so, need help very quickly. I have directories (eg 40001, 40002, etc) that each have one subdirectory (01). Each subdir 01 has multiple subdirs (001, 002, 003, etc). They are same in each dir. I need to keep the top and... (7 Replies)
Discussion started by: kkouraus1
7 Replies

7. Shell Programming and Scripting

Rsync through java program - issues with remote connection failure

Hi Everybody, I am running rsync through my java application. The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies

8. Solaris

rsync - remote connection error

Hi , We have installed rsync in two Solaris boxes, when we try to sync files from one machine to another.. it is giving the following error. ld.so.1: rsync: fatal: libiconv.so.2: open failed: No such file or directory rsync: connection unexpectedly closed (0 bytes received so far) rsync... (1 Reply)
Discussion started by: MVEERA
1 Replies

9. UNIX for Advanced & Expert Users

Problem with rsync - connection unexpectedly closed

Hi i am running a rsync between two remote servers but it errors. The rsync command is a follows rsync -aWv -e rsh --stats progress --delete --ignore-errors --exclude .DS_Store --exclude .HSancillary --exclude .HSxmap --exclude .HSResource /raid1/PRODUCTION/ ... (0 Replies)
Discussion started by: treds
0 Replies

10. Shell Programming and Scripting

rsync multiple directories into single directory on remote

I would like to find and backup all *.mp4 files from /Pictures and its sub-directories and move them to a single directory on a remote. I can find and move the files but I don't want the directory structure...just the files to be placed in a single remote directory. To find my files I use ... (1 Reply)
Discussion started by: wreckedred
1 Replies
Login or Register to Ask a Question
XINE-REMOTE(1)						      General Commands Manual						    XINE-REMOTE(1)

NAME
xine-remote - a small tool to connect xine remote control server. SYNOPSIS
xine-remote [options] DESCRIPTION
This manual page documents briefly the xine-remote tool. xine-remote can replace a raw telnet connection to a xine remote control server. It use the readline facilities (completion, vi/emacs shortcuts, command history, etc...). By default, it try to connect the localhost, using the default port (see xine(1)). OPTIONS
The program follow the usual GNU command line syntax, with long ioptions starting with two dashes (`-'). A summary of options are included below. -H, --host <hostname> Try to connect <hostname>. -P, --port <port> Try to connect the host using <port>. -c, --command <command> Send <command> to server then quit. The command should be single quoted if it contain spaces or special characters. -n, --noconnect Do not initiate the connection on startup. -v, --version Display version. -h, --help Display options summary. COMMANDS
Few commands are available, which are used to open or close a connection: ? Display available commands (the xine-remote ones + server ones when connection is established). help <command> Display the purpose of <command>, if that is omitted, display available commands. syntax <command> Display the usage of <command>. version Display version. open <server[:port]> Open connection to server. A port can be optionally specified, using colon (:) separator. close Close connection. quit Leaving xine-remote. SEE ALSO
xine(1). AUTHOR
This manual page was written by Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> for the xine project. The xine project 2002-04-16 XINE-REMOTE(1)