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

This is a discussion on Is there a way to simulate/preview (but not really do) rsync ? within the Linux Networking forums, part of the Linux Forums category; As a first step in developing a rsync procedure I would like just to simulate the coded rsync command. In ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2008
Matthew Lincoln
 
Posts: n/a
Default Is there a way to simulate/preview (but not really do) rsync ?

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
Reply With Quote
  #2 (permalink)  
Old 05-05-2008
Joachim Mæland
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

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
Reply With Quote
  #3 (permalink)  
Old 05-05-2008
Icarus Sparry
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

On Mon, 05 May 2008 06:33:33 +0000, Matthew Lincoln wrote:

> 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


Which part of the manual page describing the "-n" (or "--dry-run") option
do you not understand?
Reply With Quote
  #4 (permalink)  
Old 05-05-2008
Bill Marcum
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

On 2008-05-05, Matthew Lincoln <kmlincoln100@hotmail.com> wrote:
>
>
> 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


rsync -n
man rsync
Reply With Quote
  #5 (permalink)  
Old 05-05-2008
Nikhil
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync?

Matthew Lincoln wrote:
> 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

try the '--dry-run' or '-n' options to the rsync command
Reply With Quote
  #6 (permalink)  
Old 05-05-2008
Janis
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

On 5 Mai, 08:33, kmlincoln...@hotmail.com (Matthew Lincoln) wrote:
> 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?


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

Janis

>
> Matthew


Reply With Quote
  #7 (permalink)  
Old 05-05-2008
Dave B
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

On Monday 5 May 2008 08:33, Matthew Lincoln wrote:

> 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?


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

--
D.
Reply With Quote
  #8 (permalink)  
Old 05-05-2008
Robert Heller
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

At 05 May 2008 06:33:33 GMT kmlincoln100@hotmail.com (Matthew Lincoln) wrote:

>
> 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?


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
heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

Reply With Quote
  #9 (permalink)  
Old 05-05-2008
Unruh
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync ?

kmlincoln100@hotmail.com (Matthew Lincoln) writes:

>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?


man pages are your frind.
man rsync
look for "dry-run"
Reply With Quote
  #10 (permalink)  
Old 05-05-2008
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Is there a way to simulate/preview (but not really do) rsync?

Matthew Lincoln wrote:
> 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


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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0