Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a way to simulate/preview (but not really do) rsync ?

7,793 views
Skip to first unread message

Matthew Lincoln

unread,
May 5, 2008, 2:33:33 AM5/5/08
to
As a first step in developing a rsync procedure I would like just to simulate the
coded rsync command. In other words I want to preview the transferred files at first.

How can I do such a simulated run?

Matthew

Joachim Mæland

unread,
May 5, 2008, 2:42:27 AM5/5/08
to
On Mon, 05 May 2008 06:33:33 +0000, Matthew Lincoln wrote:

> How can I do such a simulated run?

RTFM...

man rsync
/dry-run <Enter>


--
Regards/mvh Joachim Mæland

If everything seems under control, you're just not going fast enough.
-Mario Andretti

Nikhil

unread,
May 5, 2008, 3:07:16 AM5/5/08
to
try the '--dry-run' or '-n' options to the rsync command

Bill Marcum

unread,
May 5, 2008, 2:58:43 AM5/5/08
to

rsync -n
man rsync

Janis

unread,
May 5, 2008, 3:33:52 AM5/5/08
to

Have a look at the rsync man page, there's an option -n.

Janis

>
> Matthew

Dave B

unread,
May 5, 2008, 3:42:20 AM5/5/08
to

Did you read man rsync? From the description, the -n option seems to do what
you want.

--
D.

Robert Heller

unread,
May 5, 2008, 6:14:08 AM5/5/08
to

From 'man rsync':

-n, --dry-run
This makes rsync perform a trial run that doesn't make any
changes (and produces mostly the same output as a real run).
It is most commonly used in combination with the -v, --verbose
and/or -i, --itemize-changes options to see what an rsync com-
mand is going to do before one actually runs it.

The output of --itemize-changes is supposed to be exactly the
same on a dry run and a subsequent real run (barring inten-
tional trickery and system call failures); if it isn't, that's
a bug. Other output is the same to the extent practical, but
may differ in some areas. Notably, a dry run does not send the
actual data for file transfers, so --progress has no effect,
the 'bytes sent', 'bytes received', 'literal data', and
'matched data' statistics are too small, and the 'speedup'
value is equivalent to a run where no file transfers are
needed.

>
> Matthew
>

--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

Unruh

unread,
May 5, 2008, 8:43:35 AM5/5/08
to
kmlinc...@hotmail.com (Matthew Lincoln) writes:

man pages are your frind.
man rsync
look for "dry-run"

Nico Kadel-Garcia

unread,
May 5, 2008, 10:01:43 AM5/5/08
to Matthew Lincoln

You chould use 'rsync -v --dry-run [arguments]' I use this to pre-test all
sorts of things.

Icarus Sparry

unread,
May 5, 2008, 2:56:11 AM5/5/08
to

Which part of the manual page describing the "-n" (or "--dry-run") option
do you not understand?

0 new messages