Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
b86f0cef
Commit
b86f0cef
authored
Feb 09, 1999
by
David Dykstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --quiet/-q option. Contributed by Rich Salz salzr@certco.com.
parent
c226b7c2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
5 deletions
+22
-5
clientserver.c
clientserver.c
+1
-1
log.c
log.c
+3
-0
main.c
main.c
+1
-1
options.c
options.c
+10
-2
rsync.yo
rsync.yo
+7
-1
No files found.
clientserver.c
View file @
b86f0cef
...
...
@@ -292,7 +292,7 @@ static int rsync_module(int fd, int i)
}
}
ret
=
parse_arguments
(
argc
,
argv
);
ret
=
parse_arguments
(
argc
,
argv
,
0
);
if
(
request
)
{
if
(
*
auth_user
)
{
...
...
log.c
View file @
b86f0cef
...
...
@@ -87,8 +87,11 @@ void log_open(void)
int
len
;
FILE
*
f
=
NULL
;
extern
int
am_daemon
;
extern
int
quiet
;
/* recursion can happen with certain fatal conditions */
if
(
quiet
!=
0
&&
fd
==
FINFO
)
return
;
va_start
(
ap
,
format
);
len
=
vslprintf
(
buf
,
sizeof
(
buf
),
format
,
ap
);
va_end
(
ap
);
...
...
main.c
View file @
b86f0cef
...
...
@@ -592,7 +592,7 @@ int main(int argc,char *argv[])
carried across */
orig_umask
=
(
int
)
umask
(
0
);
if
(
!
parse_arguments
(
argc
,
argv
))
{
if
(
!
parse_arguments
(
argc
,
argv
,
1
))
{
exit_cleanup
(
RERR_SYNTAX
);
}
...
...
options.c
View file @
b86f0cef
...
...
@@ -72,6 +72,7 @@ char *rsync_path = RSYNC_NAME;
int
rsync_port
=
RSYNC_PORT
;
int
verbose
=
0
;
int
quiet
=
0
;
int
always_checksum
=
0
;
int
list_only
=
0
;
...
...
@@ -90,6 +91,7 @@ void usage(int F)
rprintf
(
F
,
" or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
\n
"
);
rprintf
(
F
,
"
\n
Options
\n
"
);
rprintf
(
F
,
" -v, --verbose increase verbosity
\n
"
);
rprintf
(
F
,
" -q, --quiet decrease verbosity
\n
"
);
rprintf
(
F
,
" -c, --checksum always checksum
\n
"
);
rprintf
(
F
,
" -a, --archive archive mode
\n
"
);
rprintf
(
F
,
" -r, --recursive recurse into directories
\n
"
);
...
...
@@ -151,7 +153,7 @@ enum {OPT_VERSION,OPT_SUFFIX,OPT_SENDER,OPT_SERVER,OPT_EXCLUDE,
OPT_INCLUDE
,
OPT_INCLUDE_FROM
,
OPT_STATS
,
OPT_PARTIAL
,
OPT_PROGRESS
,
OPT_SAFE_LINKS
,
OPT_COMPARE_DEST
,
OPT_LOG_FORMAT
,
OPT_PASSWORD_FILE
};
static
char
*
short_options
=
"oblLWHpguDCtcahvrRIxnSe:B:T:z"
;
static
char
*
short_options
=
"oblLWHpguDCtcahv
q
rRIxnSe:B:T:z"
;
static
struct
option
long_options
[]
=
{
{
"version"
,
0
,
0
,
OPT_VERSION
},
...
...
@@ -177,6 +179,7 @@ static struct option long_options[] = {
{
"backup"
,
0
,
0
,
'b'
},
{
"update"
,
0
,
0
,
'u'
},
{
"verbose"
,
0
,
0
,
'v'
},
{
"quiet"
,
0
,
0
,
'q'
},
{
"recursive"
,
0
,
0
,
'r'
},
{
"relative"
,
0
,
0
,
'R'
},
{
"devices"
,
0
,
0
,
'D'
},
...
...
@@ -249,7 +252,7 @@ static int check_refuse_options(char *ref, int opt)
}
int
parse_arguments
(
int
argc
,
char
*
argv
[])
int
parse_arguments
(
int
argc
,
char
*
argv
[]
,
int
frommain
)
{
int
opt
;
int
option_index
;
...
...
@@ -395,6 +398,10 @@ int parse_arguments(int argc, char *argv[])
verbose
++
;
break
;
case
'q'
:
if
(
frommain
)
quiet
++
;
break
;
case
'a'
:
recurse
=
1
;
#if SUPPORT_LINKS
...
...
@@ -507,6 +514,7 @@ void server_options(char **args,int *argc)
argstr
[
0
]
=
'-'
;
for
(
i
=
0
;
i
<
verbose
;
i
++
)
argstr
[
x
++
]
=
'v'
;
/* the -q option is intentionally left out */
if
(
make_backups
)
argstr
[
x
++
]
=
'b'
;
if
(
update_only
)
...
...
rsync.yo
View file @
b86f0cef
mailto(rsync-bugs@samba.org)
manpage(rsync)(1)(
7 Jan
1999)()()
manpage(rsync)(1)(
9 Feb
1999)()()
manpagename(rsync)(faster, flexible replacement for rcp)
manpagesynopsis()
...
...
@@ -220,6 +220,7 @@ Usage: rsync [OPTION]... SRC [USER@]HOST:DEST
Options
-v, --verbose increase verbosity
-q, --quiet decrease verbosity
-c, --checksum always checksum
-a, --archive archive mode
-r, --recursive recurse into directories
...
...
@@ -288,6 +289,11 @@ information on what files are being skipped and slightly more
information at the end. More than two -v flags should only be used if
you are debugging rsync.
dit(bf(-q, --quiet)) This option decreases the amount of information you
are given during the transfer, notably suppressing information messages
from the remote server. This flag is useful when invoking rsync from
cron.
dit(bf(-I, --ignore-times)) Normally rsync will skip any files that are
already the same length and have the same time-stamp. This option turns
off this behavior.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment