-
Notifications
You must be signed in to change notification settings - Fork 18
/
stdlib.texinfo
3277 lines (2376 loc) · 88.2 KB
/
stdlib.texinfo
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\input texinfo-altfont
\input texinfo-logo
\input texinfo
@selectaltfont{cmbright}
@setlogo{CfengineLogo}
@c *********************************************************************
@c
@c This is a TEXINFO file. It generates both TEX documentation and
@c the "on line" documentation "info" files.
@c
@c ***********************************************************************
@c %** start of header
@setfilename CfengineStdLibrary.info
@settitle Community Open Promise Body Library
@setchapternewpage odd
@c %** end of header
@titlepage
@title Community Open Promise Body Library
@subtitle A CFEngine Standard
@author CFEngine AS
@c @smallbook
@fonttextsize 10
@page
@vskip 0pt plus 1filll
Copyright @copyright{} 2012 CFEngine AS
@end titlepage
@c *************************** File begins here ************************
@ifinfo
@dircategory CFEngine Training
@direntry
* cfengine Reference:
CFEngine is a language based framework
designed for configuring and maintaining
Unix-like operating systems attached
to a TCP/IP network.
@end direntry
@end ifinfo
@ifnottex
@node Top, The Purpose Of This Handbook, (dir), (dir)
@top CFEngine-Open-Promise-Body-Library
@end ifnottex
@ifhtml
@html
<a href="#Contents">COMPLETE TABLE OF CONTENTS</a>
<h2>Summary of contents</h2>
@end html
@end ifhtml
@iftex
@contents
@end iftex
@menu
* The Purpose Of This Handbook::
@end menu
@node The Purpose Of This Handbook, , Top, Top
@chapter The Purpose Of This Handbook
@sp 1
CFEngine is built on promises. Promises were chosen as the model for CFEngine's
configuration language, because they represent an expression of intention.
If you are using custom scripts to manage your systems, you are using
@i{recipes}. Take a look at any cookbook and you will see that all
recipes look the same: take flour, eggs, butter, sugar ... and you
know nothing because you can make a hundred things from these steps.
If you don't make clear your intention, it is very hard to know what
the recipe is supposed to be: is it a cake, a waffle, a pastry?
The same is true in system administration. Recipes are not merely
scripts, they encapsulate knowledge and experience. Their value is
in communicating @i{desired outcomes} or states.
This library of standard components is like a cookbook that tells you
only how to make basics well. It gives these basic skills names and
therefore gives you a common vocabulary -- you will put together these
basics in creative ways to build your systems.
@sp 2
@cartouche
Please contribute to this guide by helping to develop a repertoire of
basic skills and names. This collection should be comprehensive but
parsimonious. Basics are only basics if they are few and carefully
thought out. This is a work in progress and your experience is welcome.
This library will be moderated by CFEngine, and contributions and discussions
ca n be made to the help-cfengine@@cfengine.org mailing list.
@end cartouche
@menu
* body acl access_generic::
* body acl ntfs::
* body acl strict::
* body action bg::
* body action if_elapsed::
* body action if_elapsed_day::
* body action ifwin_bg::
* body action immediate::
* body action log_repaired::
* body action log_verbose::
* body action measure_performance::
* body action policy::
* body action sample_rate::
* body action warn_only::
* body changes detect_all_change::
* body changes detect_content::
* body changes diff::
* body changes diff_noupdate::
* body changes noupdate::
* body classes always::
* body classes cf2_if_else::
* body classes cmd_repair::
* body classes enumerate::
* body classes if_else::
* body classes if_notkept::
* body classes if_ok::
* body classes if_ok_cancel::
* body classes if_repaired::
* body classes state_repaired::
* body contain in_dir::
* body contain in_dir_shell::
* body contain in_dir_shell_and_silent::
* body contain in_shell::
* body contain in_shell_and_silent::
* body contain in_shell_bg::
* body contain jail::
* body contain setuid::
* body contain setuid_sh::
* body contain setuidgid_sh::
* body contain silent::
* body contain silent_in_dir::
* body copy_from backup_local_cp::
* body copy_from local_cp::
* body copy_from local_dcp::
* body copy_from no_backup_cp::
* body copy_from no_backup_dcp::
* body copy_from no_backup_rcp::
* body copy_from perms_cp::
* body copy_from remote_cp::
* body copy_from remote_dcp::
* body copy_from secure_cp::
* body copy_from seed_cp::
* body copy_from sync_cp::
* body database_server local_mysql::
* body database_server local_postgresql::
* body delete tidy::
* body depth_search include_base::
* body depth_search recurse::
* body depth_search recurse_ignore::
* body edit_defaults backup_timestamp::
* body edit_defaults empty::
* body edit_defaults no_backup::
* body edit_defaults std_defs::
* body edit_field col::
* body edit_field line::
* body edit_field quoted_var::
* body environment_resources kvm::
* body file_select all::
* body file_select by_name::
* body file_select days_old::
* body file_select dirs::
* body file_select ex_list::
* body file_select exclude::
* body file_select name_age::
* body file_select plain::
* body file_select size_range::
* body link_from linkchildren::
* body link_from ln_s::
* body location after::
* body location before::
* body location start::
* body match_value line_match_value::
* body match_value scan_changing_file::
* body match_value scan_log::
* body match_value single_value::
* body mount nfs::
* body mount nfs_p::
* body mount unmount::
* body package_method apt::
* body package_method dpkg_version::
* body package_method emerge::
* body package_method freebsd::
* body package_method generic::
* body package_method ips {::
* body package_method msi_explicit::
* body package_method msi_implicit::
* body package_method rpm_filebased::
* body package_method rpm_version::
* body package_method solaris ::
* body package_method windows_feature::
* body package_method yum::
* body package_method yum_rpm::
* body package_method zypper::
* body perms m::
* body perms mo::
* body perms mog::
* body perms og::
* body perms owner::
* body process_count any_count::
* body process_count check_range::
* body process_select days_older_than::
* body process_select exclude_procs::
* body rename disable::
* body rename rotate::
* body rename to::
* body replace_with comment::
* body replace_with uncomment::
* body replace_with value::
* body select_region INI_section::
* body service_method bootstart::
* body service_method force_deps::
* body volume min_free_space::
* bundle agent cronjob::
* bundle agent standard_services::
* bundle edit_line append_groups_starting::
* bundle edit_line append_if_no_line::
* bundle edit_line append_if_no_lines::
* bundle edit_line append_to_line_end::
* bundle edit_line append_user_field::
* bundle edit_line append_users_starting::
* bundle edit_line comment_lines_containing::
* bundle edit_line comment_lines_matching::
* bundle edit_line create_solaris_admin_file::
* bundle edit_line delete_lines_matching::
* bundle edit_line expand_template::
* bundle edit_line insert_file::
* bundle edit_line insert_lines::
* bundle edit_line maintain_key_values::
* bundle edit_line manage_variable_values_ini::
* bundle edit_line replace_line_end::
* bundle edit_line replace_or_add::
* bundle edit_line resolvconf::
* bundle edit_line set_colon_field::
* bundle edit_line set_config_values::
* bundle edit_line set_config_values_matching::
* bundle edit_line set_user_field::
* bundle edit_line set_variable_values::
* bundle edit_line set_variable_values_ini::
* bundle edit_line uncomment_lines_containing::
* bundle edit_line uncomment_lines_matching::
* bundle edit_line warn_lines_matching::
@end menu
@node body acl access_generic, body acl ntfs, The Purpose Of This Handbook, The Purpose Of This Handbook
@section body acl access_generic(acl)
@verbatim
body acl access_generic(acl)
# default/inherited ACLs are left unchanged,
# applicable for both files and directories on all platforms
{
acl_method => "overwrite";
aces => { "@(acl)" };
windows::
acl_type => "ntfs";
!windows::
acl_type => "posix";
}
@end verbatim
@node body acl ntfs, body acl strict, body acl access_generic, The Purpose Of This Handbook
@section body acl ntfs(acl)
@verbatim
body acl ntfs(acl)
{
acl_type => "ntfs";
acl_method => "overwrite";
aces => { "@(acl)" };
}
@end verbatim
@node body acl strict, body action bg, body acl ntfs, The Purpose Of This Handbook
@section body acl strict
@verbatim
body acl strict
# NOTE: May need to take ownership of file/dir
# to be sure no-one else is allowed access
{
acl_method => "overwrite";
windows::
aces => { "user:Administrator:rwx" };
!windows::
aces => { "user:root:rwx" };
}
@end verbatim
@node body action bg, body action if_elapsed, body acl strict, The Purpose Of This Handbook
@section body action bg(elapsed,expire)
@verbatim
body action bg(elapsed,expire)
{
ifelapsed => "$(elapsed)";
expireafter => "$(expire)";
background => "true";
}
@end verbatim
@node body action if_elapsed, body action if_elapsed_day, body action bg, The Purpose Of This Handbook
@section body action if_elapsed(x)
@verbatim
body action if_elapsed(x)
{
ifelapsed => "$(x)";
expireafter => "$(x)";
}
@end verbatim
@node body action if_elapsed_day, body action ifwin_bg, body action if_elapsed, The Purpose Of This Handbook
@section body action if_elapsed_day
@verbatim
body action if_elapsed_day
{
ifelapsed => "1440"; # 60 x 24
expireafter => "1400";
}
@end verbatim
@node body action ifwin_bg, body action immediate, body action if_elapsed_day, The Purpose Of This Handbook
@section body action ifwin_bg
@verbatim
body action ifwin_bg
{
windows::
background => "true";
}
@end verbatim
@node body action immediate, body action log_repaired, body action ifwin_bg, The Purpose Of This Handbook
@section body action immediate
@verbatim
body action immediate
{
ifelapsed => "0";
}
@end verbatim
@node body action log_repaired, body action log_verbose, body action immediate, The Purpose Of This Handbook
@section body action log_repaired(log,message)
@verbatim
body action log_repaired(log,message)
{
log_string => "$(sys.date), $(message)";
log_repaired => "$(log)";
}
@end verbatim
@node body action log_verbose, body action measure_performance, body action log_repaired, The Purpose Of This Handbook
@section body action log_verbose
@verbatim
body action log_verbose
{
log_level => "verbose";
}
@end verbatim
@node body action measure_performance, body action policy, body action log_verbose, The Purpose Of This Handbook
@section body action measure_performance(x)
@verbatim
body action measure_performance(x)
{
measurement_class => "Detect changes in $(this.promiser)";
ifelapsed => "$(x)";
expireafter => "$(x)";
}
@end verbatim
@node body action policy, body action sample_rate, body action measure_performance, The Purpose Of This Handbook
@section body action policy(p)
@verbatim
body action policy(p)
{
action_policy => "$(p)";
}
# Log a message to log=[/file|stdout]
@end verbatim
@node body action sample_rate, body action warn_only, body action policy, The Purpose Of This Handbook
@section body action sample_rate(x)
@verbatim
body action sample_rate(x)
{
ifelapsed => "$(x)";
expireafter => "10";
}
@end verbatim
@node body action warn_only, body changes detect_all_change, body action sample_rate, The Purpose Of This Handbook
@section body action warn_only
@verbatim
body action warn_only
{
action_policy => "warn";
ifelapsed => "60";
}
@end verbatim
@node body changes detect_all_change, body changes detect_content, body action warn_only, The Purpose Of This Handbook
@section body changes detect_all_change
@verbatim
body changes detect_all_change
# This is fierce, and will cost disk cycles
{
hash => "best";
report_changes => "all";
update_hashes => "yes";
}
@end verbatim
@node body changes detect_content, body changes diff, body changes detect_all_change, The Purpose Of This Handbook
@section body changes detect_content
@verbatim
body changes detect_content
# This is a cheaper alternative
{
hash => "md5";
report_changes => "content";
update_hashes => "yes";
}
@end verbatim
@node body changes diff, body changes diff_noupdate, body changes detect_content, The Purpose Of This Handbook
@section body changes diff
@verbatim
body changes diff
# Generates diff report (Nova and above)
{
hash => "sha256";
report_changes => "content";
report_diffs => "true";
update_hashes => "yes";
}
@end verbatim
@node body changes diff_noupdate, body changes noupdate, body changes diff, The Purpose Of This Handbook
@section body changes diff_noupdate
@verbatim
body changes diff_noupdate
{
hash => "sha256";
report_changes => "content";
report_diffs => "true";
update_hashes => "no";
}
@end verbatim
@node body changes noupdate, body classes always, body changes diff_noupdate, The Purpose Of This Handbook
@section body changes noupdate
@verbatim
body changes noupdate
# Use on (small) files that should never change
{
hash => "sha256";
report_changes => "content";
update_hashes => "no";
}
@end verbatim
@node body classes always, body classes cf2_if_else, body changes noupdate, The Purpose Of This Handbook
@section body classes always(x)
@verbatim
body classes always(x)
# Define a class no matter what the outcome of the promise is
{
promise_repaired => { "$(x)" };
promise_kept => { "$(x)" };
repair_failed => { "$(x)" };
repair_denied => { "$(x)" };
repair_timeout => { "$(x)" };
}
# agent bundles
@end verbatim
@node body classes cf2_if_else, body classes cmd_repair, body classes always, The Purpose Of This Handbook
@section body classes cf2_if_else(yes,no)
@verbatim
body classes cf2_if_else(yes,no)
# meant to match cf2 semantics
{
promise_repaired => { "$(yes)" };
repair_failed => { "$(no)" };
repair_denied => { "$(no)" };
repair_timeout => { "$(no)" };
}
@end verbatim
@node body classes cmd_repair, body classes enumerate, body classes cf2_if_else, The Purpose Of This Handbook
@section body classes cmd_repair(code,cl)
@verbatim
body classes cmd_repair(code,cl)
{
repaired_returncodes => { "$(code)" };
promise_repaired => { "$(cl)" };
}
@end verbatim
@node body classes enumerate, body classes if_else, body classes cmd_repair, The Purpose Of This Handbook
@section body classes enumerate(x)
@verbatim
body classes enumerate(x)
#
# This is used by commercial editions to count
# instances of jobs in a cluster
#
{
promise_repaired => { "mXC_$(x)" };
promise_kept => { "mXC_$(x)" };
persist_time => "15";
}
@end verbatim
@node body classes if_else, body classes if_notkept, body classes enumerate, The Purpose Of This Handbook
@section body classes if_else(yes,no)
@verbatim
body classes if_else(yes,no)
{
promise_kept => { "$(yes)" };
promise_repaired => { "$(yes)" };
repair_failed => { "$(no)" };
repair_denied => { "$(no)" };
repair_timeout => { "$(no)" };
}
@end verbatim
@node body classes if_notkept, body classes if_ok, body classes if_else, The Purpose Of This Handbook
@section body classes if_notkept(x)
@verbatim
body classes if_notkept(x)
{
repair_failed => { "$(x)" };
repair_denied => { "$(x)" };
repair_timeout => { "$(x)" };
}
@end verbatim
@node body classes if_ok, body classes if_ok_cancel, body classes if_notkept, The Purpose Of This Handbook
@section body classes if_ok(x)
@verbatim
body classes if_ok(x)
{
promise_repaired => { "$(x)" };
promise_kept => { "$(x)" };
}
@end verbatim
@node body classes if_ok_cancel, body classes if_repaired, body classes if_ok, The Purpose Of This Handbook
@section body classes if_ok_cancel(x)
@verbatim
body classes if_ok_cancel(x)
{
cancel_repaired => { "$(x)" };
cancel_kept => { "$(x)" };
}
@end verbatim
@node body classes if_repaired, body classes state_repaired, body classes if_ok_cancel, The Purpose Of This Handbook
@section body classes if_repaired(x)
@verbatim
body classes if_repaired(x)
{
promise_repaired => { "$(x)" };
}
@end verbatim
@node body classes state_repaired, body contain in_dir, body classes if_repaired, The Purpose Of This Handbook
@section body classes state_repaired(x)
@verbatim
body classes state_repaired(x)
{
promise_repaired => { "$(x)" };
persist_time => "10";
}
@end verbatim
@node body contain in_dir, body contain in_dir_shell, body classes state_repaired, The Purpose Of This Handbook
@section body contain in_dir(s)
@verbatim
body contain in_dir(s)
{
chdir => "$(s)";
}
@end verbatim
@node body contain in_dir_shell, body contain in_dir_shell_and_silent, body contain in_dir, The Purpose Of This Handbook
@section body contain in_dir_shell(s)
@verbatim
body contain in_dir_shell(s)
{
chdir => "$(s)";
useshell => "true";
}
@end verbatim
@node body contain in_dir_shell_and_silent, body contain in_shell, body contain in_dir_shell, The Purpose Of This Handbook
@section body contain in_dir_shell_and_silent(dir)
@verbatim
body contain in_dir_shell_and_silent(dir)
{
useshell => "true";
no_output => "true";
chdir => "$(dir)";
}
@end verbatim
@node body contain in_shell, body contain in_shell_and_silent, body contain in_dir_shell_and_silent, The Purpose Of This Handbook
@section body contain in_shell
@verbatim
body contain in_shell
{
useshell => "true";
}
@end verbatim
@node body contain in_shell_and_silent, body contain in_shell_bg, body contain in_shell, The Purpose Of This Handbook
@section body contain in_shell_and_silent
@verbatim
body contain in_shell_and_silent
{
useshell => "true";
no_output => "true";
}
@end verbatim
@node body contain in_shell_bg, body contain jail, body contain in_shell_and_silent, The Purpose Of This Handbook
@section body contain in_shell_bg
@verbatim
body contain in_shell_bg
{
useshell => "true";
background => "true";
}
@end verbatim
@node body contain jail, body contain setuid, body contain in_shell_bg, The Purpose Of This Handbook
@section body contain jail(owner,root,dir)
@verbatim
body contain jail(owner,root,dir)
{
exec_owner => "$(owner)";
useshell => "true";
chdir => "$(dir)";
chroot => "$(root)";
}
@end verbatim
@node body contain setuid, body contain setuid_sh, body contain jail, The Purpose Of This Handbook
@section body contain setuid(x)
@verbatim
body contain setuid(x)
{
exec_owner => "$(x)";
useshell => "false";
}
@end verbatim
@node body contain setuid_sh, body contain setuidgid_sh, body contain setuid, The Purpose Of This Handbook
@section body contain setuid_sh(x)
@verbatim
body contain setuid_sh(x)
{
exec_owner => "$(x)";
useshell => "true";
}
@end verbatim
@node body contain setuidgid_sh, body contain silent, body contain setuid_sh, The Purpose Of This Handbook
@section body contain setuidgid_sh(owner,group)
@verbatim
body contain setuidgid_sh(owner,group)
{
exec_owner => "$(owner)";
exec_group => "$(group)";
useshell => "true";
}
@end verbatim
@node body contain silent, body contain silent_in_dir, body contain setuidgid_sh, The Purpose Of This Handbook
@section body contain silent
@verbatim
body contain silent
{
no_output => "true";
}
@end verbatim
@node body contain silent_in_dir, body copy_from backup_local_cp, body contain silent, The Purpose Of This Handbook
@section body contain silent_in_dir(s)
@verbatim
body contain silent_in_dir(s)
{
chdir => "$(s)";
no_output => "true";
}
@end verbatim
@node body copy_from backup_local_cp, body copy_from local_cp, body contain silent_in_dir, The Purpose Of This Handbook
@section body copy_from backup_local_cp(from)
@verbatim
body copy_from backup_local_cp(from)
# Local copy, keeping a backup of old versions
{
source => "$(from)";
copy_backup => "timestamp";
}
# Copy only if the file does not already exist, i.e. seed the placement
@end verbatim
@node body copy_from local_cp, body copy_from local_dcp, body copy_from backup_local_cp, The Purpose Of This Handbook
@section body copy_from local_cp(from)
@verbatim
body copy_from local_cp(from)
{
source => "$(from)";
}
@end verbatim
@node body copy_from local_dcp, body copy_from no_backup_cp, body copy_from local_cp, The Purpose Of This Handbook
@section body copy_from local_dcp(from)
@verbatim
body copy_from local_dcp(from)
{
source => "$(from)";
compare => "digest";
}
@end verbatim
@node body copy_from no_backup_cp, body copy_from no_backup_dcp, body copy_from local_dcp, The Purpose Of This Handbook
@section body copy_from no_backup_cp(from)
@verbatim
body copy_from no_backup_cp(from)
{
source => "$(from)";
copy_backup => "false";
}
@end verbatim
@node body copy_from no_backup_dcp, body copy_from no_backup_rcp, body copy_from no_backup_cp, The Purpose Of This Handbook
@section body copy_from no_backup_dcp(from)
@verbatim
body copy_from no_backup_dcp(from)
{
source => "$(from)";
copy_backup => "false";
compare => "digest";
}
@end verbatim
@node body copy_from no_backup_rcp, body copy_from perms_cp, body copy_from no_backup_dcp, The Purpose Of This Handbook
@section body copy_from no_backup_rcp(from,server)
@verbatim
body copy_from no_backup_rcp(from,server)
{
servers => { "$(server)" };
source => "$(from)";
compare => "mtime";
copy_backup => "false";
}
@end verbatim
@node body copy_from perms_cp, body copy_from remote_cp, body copy_from no_backup_rcp, The Purpose Of This Handbook
@section body copy_from perms_cp(from)
@verbatim
body copy_from perms_cp(from)
{
source => "$(from)";
preserve => "true";
}
@end verbatim
@node body copy_from remote_cp, body copy_from remote_dcp, body copy_from perms_cp, The Purpose Of This Handbook
@section body copy_from remote_cp(from,server)
@verbatim
body copy_from remote_cp(from,server)
{
servers => { "$(server)" };
source => "$(from)";
compare => "mtime";
}
@end verbatim
@node body copy_from remote_dcp, body copy_from secure_cp, body copy_from remote_cp, The Purpose Of This Handbook
@section body copy_from remote_dcp(from,server)
@verbatim
body copy_from remote_dcp(from,server)
{
servers => { "$(server)" };
source => "$(from)";
compare => "digest";
}
@end verbatim
@node body copy_from secure_cp, body copy_from seed_cp, body copy_from remote_dcp, The Purpose Of This Handbook
@section body copy_from secure_cp(from,server)
@verbatim
body copy_from secure_cp(from,server)
{
source => "$(from)";
servers => { "$(server)" };
compare => "digest";
encrypt => "true";
verify => "true";
}
@end verbatim
@node body copy_from seed_cp, body copy_from sync_cp, body copy_from secure_cp, The Purpose Of This Handbook
@section body copy_from seed_cp(from)
@verbatim
body copy_from seed_cp(from)
{
source => "$(from)";
compare => "exists";
}
@end verbatim
@node body copy_from sync_cp, body database_server local_mysql, body copy_from seed_cp, The Purpose Of This Handbook