-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
112 lines (107 loc) · 2.8 KB
/
options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
* ProFTPD - mod_rsync option handling
* Copyright (c) 2010-2016 TJ Saunders
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* As a special exemption, TJ Saunders and other respective copyright holders
* give permission to link this program with OpenSSL, and distribute the
* resulting executable, without including the source code for OpenSSL in the
* source distribution.
*/
#ifndef MOD_RSYNC_OPTIONS_H
#define MOD_RSYNC_OPTIONS_H
#include "mod_rsync.h"
#include "session.h"
struct rsync_options {
int allow_incr_recurse;
int dry_run;
int verbose;
int show_stats;
int show_human_readable;
int recurse;
int transfer_dirs;
int preserve_uid;
int preserve_gid;
int preserve_perms;
int preserve_exec;
int preserve_acls;
int preserve_xattrs;
int preserve_links;
int preserve_hard_links;
int preserve_devices;
int preserve_specials;
int preserve_times;
int skip_dir_times;
int copy_links;
int copy_dirlinks;
int copy_unsafe_links;
int keep_dirlinks;
int safe_symlinks;
int modify_window;
int as_root;
int use_relative_paths;
int implied_dirs;
int ignore_times;
int size_only;
int max_size;
int min_size;
int single_filesystem;
int update_only;
int skip_existing;
int skip_nonexisting;
int sparse_files;
int inplace;
int append_mode;
int delete_mode;
int delete_before;
int delete_during;
int delete_after;
int delete_excluded;
int delete_forced;
int delete_max;
int remove_source_files;
int ignore_errors;
int exclude_cvs;
int always_checksum;
long block_size;
int whole_file;
int fuzzy_basis;
int use_compression;
int skip_compression;
int compression_level;
int keep_partial;
char *partial_dir;
int delay_updates;
int prune_empty_dirs;
int itemize_changes;
int use_backups;
char *backup_dir;
char *backup_suffix;
int list_only;
int eol_nulls;
int protect_args;
int numeric_ids;
int io_timeout;
int escape_chars;
int use_qsort;
int sender;
int32_t checksum_seed;
char *iconv_opt;
};
int rsync_options_handle_data(pool *p, array_header *req,
struct rsync_session *sess);
int rsync_options_init(void);
#endif /* MOD_RSYNC_OPTIONS_H */