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

rsync dummy mode?

935 views
Skip to first unread message

Johannes D.H. Beekhuizen

unread,
Dec 14, 2009, 8:12:18 AM12/14/09
to
Hello,

I use rsync quit a lot for making backups (mirrors) on my system.
Now I wonder, if it's possible to run rsync in a "dummy" mode, so
that I get a list of files that *would* be changed if I ran rsync
properly.
I looked at the man page, but could not find an answer. Is there
anybody who can help me?
Thanks in advance!

Regards,

Hans.

--
Regards,

Hans.

Jon Solberg

unread,
Dec 14, 2009, 8:22:17 AM12/14/09
to

Look for the --dry-run option. It should do what you want.

--
Jon Solberg (remove "nospam." from email address).

Johannes D.H. Beekhuizen

unread,
Dec 14, 2009, 10:00:07 AM12/14/09
to
Jon Solberg wrote:\\

> On 2009-12-14, Johannes D.H. Beekhuizen <jbee...@duinheks.nl> wrote:
>> Now I wonder, if it's possible to run rsync in a "dummy" mode, so
>> that I get a list of files that *would* be changed if I ran rsync

> Look for the --dry-run option. It should do what you want.

It seems to do exactly what I want. I just did bnot see it :((
Thank you very much!

--
Regards,

Hans.

goarilla@work

unread,
Dec 15, 2009, 6:05:03 AM12/15/09
to

i usually use -n --stats
-n is the short option variant of --dry-run

Eef Hartman

unread,
Dec 17, 2009, 11:26:46 AM12/17/09
to
Johannes D.H. Beekhuizen <jbee...@duinheks.nl> wrote:
> I use rsync quit a lot for making backups (mirrors) on my system.
> Now I wonder, if it's possible to run rsync in a "dummy" mode, so
> that I get a list of files that *would* be changed if I ran rsync
> properly.
> I looked at the man page, but could not find an answer. Is there
> anybody who can help me?

Look at the -n cq --dry-run option: perform a trial run with no changes made

Do not forget to give all the other options you WOULD be using,
like especially the --delete* ones.
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M....@tudelft.nl - phone: +31-15-278 82525 **
*******************************************************************

0 new messages