Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
4602eafa
Commit
4602eafa
authored
Jul 15, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the batch examples to show how to do a remote read-batch
without first transferring the batch file.
parent
bb3edc3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
rsync.yo
rsync.yo
+18
-8
No files found.
rsync.yo
View file @
4602eafa
...
@@ -1127,22 +1127,32 @@ updating multiple destination trees. Multicast transport protocols can
...
@@ -1127,22 +1127,32 @@ updating multiple destination trees. Multicast transport protocols can
be used to transfer the batch update files in parallel to many hosts
be used to transfer the batch update files in parallel to many hosts
at once, instead of sending the same data to every host individually.
at once, instead of sending the same data to every host individually.
Example:
Example
s
:
verb(
verb(
$ rsync --write-batch=batch -a /source/dir/ /adest/dir/
$ rsync --write-batch=batch -a /source/dir/ /adest/dir/
$ rcp batch* remote:
$ ssh remote rsync --read-batch=- -a /bdest/dir/ <batch
)
verb(
$ rsync --write-batch=batch -a host:/source/dir/ /adest/dir/
$ scp batch remote:
$ ssh remote rsync --read-batch=batch -a /bdest/dir/
$ ssh remote rsync --read-batch=batch -a /bdest/dir/
# or alternatively
)
verb(
$ rsync --write-batch=batch -a /source/dir/ host:/adest/dir/
$ scp batch* remote:
$ ssh remote ./batch.rsync_argvs /bdest/dir/
$ ssh remote ./batch.rsync_argvs /bdest/dir/
)
)
In th
is example
, rsync is used to update /adest/dir/ with /source/dir/
In th
ese examples
, rsync is used to update /adest/dir/ with /source/dir/
and the information to repeat this operation is stored in "batch" and
and the information to repeat this operation is stored in "batch" and
"batch.rsync_argvs". These files are then copied to the machine named
"batch.rsync_argvs". The host "remote" is then updated with the batched
"remote". Rsync is then invoked on "remote" to update /bdest/dir/ the
update going into the directory /bdest/dir. The differences between the
same way as /adest/dir/. The last line shows the rsync_argvs file
three examples is in how the batch gets to the remote machine (via remote
being used to invoke rsync.
stdin or by being copied first), whether the initial transfer was local or
remote, and in how the batch-reading rsync command is invoked.
Caveats:
Caveats:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment