Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is there a way to simulate/preview (but not really do) rsync ?

Reply
Thread Tools Display Modes

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

 
 
Matthew Lincoln
Guest
Posts: n/a

 
      05-05-2008, 06:33 AM
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
 
 
 
 
Joachim Mæland
Guest
Posts: n/a

 
      05-05-2008, 06:42 AM
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
 
Icarus Sparry
Guest
Posts: n/a

 
      05-05-2008, 06:56 AM
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
 
Bill Marcum
Guest
Posts: n/a

 
      05-05-2008, 06:58 AM
On 2008-05-05, Matthew Lincoln <(E-Mail Removed)> 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
 
Nikhil
Guest
Posts: n/a

 
      05-05-2008, 07:07 AM
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
 
Janis
Guest
Posts: n/a

 
      05-05-2008, 07:33 AM
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
 
Dave B
Guest
Posts: n/a

 
      05-05-2008, 07:42 AM
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
 
Robert Heller
Guest
Posts: n/a

 
      05-05-2008, 10:14 AM
At 05 May 2008 06:33:33 GMT (E-Mail Removed) (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
(E-Mail Removed) -- Contract Programming: C/C++, Tcl/Tk

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      05-05-2008, 12:43 PM
(E-Mail Removed) (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
 
Nico Kadel-Garcia
Guest
Posts: n/a

 
      05-05-2008, 02:01 PM
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulate ctrl-alt-del in rdp session John A Grandy Windows Networking 16 01-28-2009 01:43 AM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
Preview of eps files strored on win 2003 server from mac os x macuser Windows Networking 0 11-20-2006 02:57 PM
OT: Print Preview from FF fails on this site? Terry Pinnell Broadband 7 09-13-2005 10:50 PM
Simulate network failure jamie Linux Networking 4 08-15-2005 10:13 AM



1 2 3 4 5 6 7 8 9 10 11