Batch mode scenario ("use case")
Suresh Govindachar
sgovindachar at yahoo.com
Sun Sep 9 20:52:31 GMT 2007
Hello,
I came up with this scenario of the use of batch mode while
thinking of back-up schemes to use for myself. However, it could
be that the last step needed in this scenario is not supported by
rsync! Here's the scenario:
At one time, /c/home/wer/work and /e/gold had identical content
and were really huge (say, 200 GBytes).
After some complex, intricate work, Mr. Wer did:
rsync -a --only-write-batch=/e/cmds/foo /c/home/wer/work/ /e/gold
Very soon after that, /c dies; and Wer needs to provide his
Customer_A stuff that used to be in
/c/home/wer/work/some/path/projects/c_a
He needs this stuff immediately, meaning, Wer cannot wait to
rebuild everything from /e/gold. However,
gold/some/path/projects/c_a is merely 5 Megs -- but it is not
the latest version.
Wer starts by creating the directory /f/new_home/wer/work, and
then uses -R as follows:
rsync -aR /e/gold/./some/path/projects/c_a /f/new_home/wer/work
which gives him an old version of c_a inside
/f/new_home/wer/work/some/path/projects
Question: How can Wer use the batch file /e/cmds/foo to recover
c_a in a timely manner (recall /e/gold is 200 Gigs and
Wer cannot wait to rebuild the entire
/f/new_home/wer/work; and he needs c_a immediately)?
Thanks,
--Suresh
More information about the rsync
mailing list