@@ -272,11 +272,8 @@ rsnapshot::server::config { 'backupclient.example.com':
272
272
one_fs => undef,
273
273
rsync_short_args => '-a',
274
274
rsync_long_args => '--delete --numeric-ids --relative --delete-excluded'
275
- ssh_args => undef,
276
- wrapper_path => '/opt/rsnapshot_wrappers/',
277
- ssh_args => undef,
278
275
du_args => '-csh',
279
- use_sudo => true ,
276
+ use_sudo => false ,
280
277
}
281
278
```
282
279
@@ -317,9 +314,9 @@ included in the rsnapshot configuration.
317
314
318
315
##### Parameters
319
316
320
- * ` source_path ` : Description
321
- * ` host ` : Description
322
- * ` options ` : Description
317
+ * ` source_path ` : The path to backup.
318
+ * ` host ` : The host being backed up. Defaults to $::fqdn.
319
+ * ` options ` : Options to be passed to rsnapshot.
323
320
324
321
325
322
### Class: ` rsnapshot::client `
@@ -330,30 +327,41 @@ resource to the backup server.
330
327
331
328
##### Parameters
332
329
333
- * ` server ` : Description
334
- * ` directories ` : Description
335
- * ` user ` : Description
336
- * ` remote_user ` : Description
337
- * ` backup_time_cron ` : Description
338
- * ` backup_time_minute ` : Description
339
- * ` backup_time_hour ` : Description
340
- * ` backup_time_weekday ` : Description
341
- * ` backup_time_dom ` : Description
342
- * ` cmd_preexec ` : Description
343
- * ` cmd_postexec ` : Description
344
- * ` cmd_client_rsync ` : Description
345
- * ` cmd_client_sudo ` : Description
346
- * ` retain_hourly ` : Description
347
- * ` retain_daily ` : Description
348
- * ` retain_weekly ` : Description
349
- * ` retain_monthly ` : Description
350
- * ` one_fs ` : Description
351
- * ` rsync_short_args ` : Description
352
- * ` rsync_long_args ` : Description
353
- * ` ssh_args ` : Description
354
- * ` use_sudo ` : Description
355
- * ` push_ssh_key ` : Description
356
- * ` wrapper_path ` : Description
330
+ * ` server ` : The server to backup to.
331
+ * ` directories ` : The directories that should be backed up.
332
+ * ` includes ` : An array of rsync "include" arguements.
333
+ * ` excludes ` : An array of rsync "exclude" arguements.
334
+ * ` includes_files ` : An array of rsync "include-files" arguements.
335
+ * ` excludes_files ` : An array of rsync "exclude-files" arguements.
336
+ * ` user ` : The client side user that handles backing up.
337
+ * ` remote_user ` : The server side user that runs backups.
338
+ * ` backup_time_cron ` : The cron descriptor (\* /2) to drive the hourly backup
339
+ script.
340
+ * ` backup_time_minute ` : The minute that backups (of all intervals) should start.
341
+ This defaults to fqdn_rand, giving each host a unique start time.
342
+ * ` backup_time_hour ` : The hour that daily backups should occur. This defaults to
343
+ fqdn_rand, giving each host a unique start time.
344
+ * ` backup_time_weekday ` : The day that weekly backups should occur. This defaults
345
+ to fqdn_rand, giving each host a random weekday for backups.
346
+ * ` backup_time_dom ` : The day of the month that monthly backups should occur.
347
+ This defaults to fqdn_rand, giving each host a random day of the month.
348
+ * ` cmd_preexec ` : The path to any script that should run before backups.
349
+ * ` cmd_postexec ` : The path to any script that should run after backups.
350
+ * ` cmd_client_rsync ` : The path to the client side rsync binary.
351
+ * ` cmd_client_sudo ` : The path to the client side sudo binary.
352
+ * ` retain_hourly ` : The number of hourly backups to retain.
353
+ * ` retain_daily ` : The number of daily backups to retain.
354
+ * ` retain_weekly ` : The number of weekly backups to retain.
355
+ * ` retain_monthly ` : The number of monthly backups to retain.
356
+ * ` one_fs ` : Whether rsync should cross filesystem boundaries or not.
357
+ * ` rsync_short_args ` : A list of short arguments to pass to rsync.
358
+ * ` rsync_long_args ` : A list of long arguments to pass to rsync.
359
+ * ` ssh_args ` : A list of arguments to pass to ssh.
360
+ * ` use_sudo ` : If enabled sudo will be used instead of direct root access for
361
+ rsync.
362
+ * ` push_ssh_key ` : If enabled the server's ssh key will be passed to this client.
363
+ * ` wrapper_path ` : The path to store the various wrapper script in.
364
+
357
365
358
366
### Class: ` rsnapshot::server `
359
367
@@ -362,20 +370,25 @@ packages and collecting the exported configurations from the client machines.
362
370
363
371
##### Parameters
364
372
365
- * ` config_path ` : Description
366
- * ` backup_path ` : Description
367
- * ` log_path ` : Description
368
- * ` user ` : Description
369
- * ` no_create_root ` : Description
370
- * ` verbose ` : Description
371
- * ` log_level ` : Description
372
- * ` link_dest ` : Description
373
- * ` sync_first ` : Description
374
- * ` use_lazy_deletes ` : Description
375
- * ` rsync_numtries ` : Description
376
- * ` stop_on_stale_lockfile ` : Description
377
- * ` du_args ` : Description
378
-
373
+ * ` config_path ` : Directory to place the configuration files in.
374
+ * ` backup_path ` : Directory to store all the backups in.
375
+ * ` log_path ` : Directory to place the configuration files in.
376
+ * ` lock_path ` : Directory to place the lock files in.
377
+ * ` user ` : The server side user running the backup scripts.
378
+ * ` no_create_root ` : Whether or not to create the rsnapshot backup directories.
379
+ * ` verbose ` : A level, one through five, describing the level of information
380
+ outputted.
381
+ * ` log_level ` : A level, one through five, describing the level of information
382
+ logged.
383
+ * ` link_dest ` : Whether rsync supports the --link-dest flag or not.
384
+ * ` sync_first ` : This requires syncing to occur with a seperate call to
385
+ rsnapshot. This is not recommended.
386
+ * ` use_lazy_deletes ` : When enabled rsnapshot will move the oldest directory to
387
+ [ interval] .delete and remove it after syncing new backups
388
+ * ` rsync_numtries ` : How many times to retry rsync after a failure.
389
+ * ` stop_on_stale_lockfile ` : Enabling this stop rsnapshot if PID in lockfile is
390
+ not running
391
+ * ` du_args ` : Arguments for the du program. GNU is preferred.
379
392
380
393
381
394
### Define: ` rsnapshot::server::config `
@@ -387,14 +400,62 @@ an rsnapshot server to backup clients that are not controlled by puppet.
387
400
388
401
##### Parameters
389
402
390
- * ` parameter ` : Description
391
-
392
-
393
- ## Limitations
403
+ * ` config_path ` : Directory to place the configuration files in.
404
+ * ` backup_path ` : Directory to store all the backups in.
405
+ * ` log_path ` : Directory to place the configuration files in.
406
+ * ` lock_path ` : Directory to place the lock files in.
407
+ * ` backup_user ` : The server side user running the backup scripts.
408
+ * ` remote_user ` : The client side user the server uses to log in.
409
+ * ` directories ` : The directories that should be backed up.
410
+ * ` lock_path ` : Directory to place the lock files in.
411
+ * ` includes ` : An array of rsync "include" arguements.
412
+ * ` excludes ` : An array of rsync "exclude" arguements.
413
+ * ` includes_files ` : An array of rsync "include-files" arguements.
414
+ * ` excludes_files ` : An array of rsync "exclude-files" arguements.
415
+ * ` no_create_root ` : Whether or not to create the rsnapshot backup directories.
416
+ * ` verbose ` : A level, one through five, describing the level of information
417
+ outputted.
418
+ * ` log_level ` : A level, one through five, describing the level of information
419
+ logged.
420
+ * ` link_dest ` : Whether rsync supports the --link-dest flag or not.
421
+ * ` sync_first ` : This requires syncing to occur with a seperate call to
422
+ rsnapshot. This is not recommended.
423
+ * ` use_lazy_deletes ` : When enabled rsnapshot will move the oldest directory to
424
+ [ interval] .delete and remove it after syncing new backups
425
+ * ` rsync_numtries ` : How many times to retry rsync after a failure.
426
+ * ` stop_on_stale_lockfile ` : Enabling this stop rsnapshot if PID in lockfile is
427
+ not running
428
+ * ` server ` : The server to backup to. Defaults to the current $::fqdn.
429
+ * ` backup_time_cron ` : The cron descriptor (\* /2) to drive the hourly backup
430
+ script.
431
+ * ` backup_time_minute ` : The minute that backups (of all intervals) should start.
432
+ This defaults to fqdn_rand, giving each host a unique start time.
433
+ * ` backup_time_hour ` : The hour that daily backups should occur. This defaults to
434
+ fqdn_rand, giving each host a unique start time.
435
+ * ` backup_time_weekday ` : The day that weekly backups should occur. This defaults
436
+ to fqdn_rand, giving each host a random weekday for backups.
437
+ * ` backup_time_dom ` : The day of the month that monthly backups should occur.
438
+ This defaults to fqdn_rand, giving each host a random day of the month.
439
+ * ` cmd_preexec ` : The path to any script that should run before backups.
440
+ * ` cmd_postexec ` : The path to any script that should run after backups.
441
+ * ` retain_hourly ` : The number of hourly backups to retain.
442
+ * ` retain_daily ` : The number of daily backups to retain.
443
+ * ` retain_weekly ` : The number of weekly backups to retain.
444
+ * ` retain_monthly ` : The number of monthly backups to retain.
445
+ * ` one_fs ` : Whether rsync should cross filesystem boundaries or not.
446
+ * ` rsync_short_args ` : A list of short arguments to pass to rsync.
447
+ * ` rsync_long_args ` : A list of long arguments to pass to rsync.
448
+ * ` ssh_args ` : A list of arguments to pass to ssh.
449
+ * ` du_args ` : Arguments for the du program. GNU is preferred.
450
+ * ` use_sudo ` : If enabled sudo will be used instead of direct root access for
451
+ rsync.
452
+ * ` wrapper_path ` : The path to store the various wrapper script in.
453
+ * ` wrapper_sudo ` : The name of the sudo wrapper script.
454
+ * ` wrapper_rsync_sender ` : The name of the rsync sender wrapper script.
455
+ * ` wrapper_rsync_ssh ` : The name of the rsync ssh wrapper script.
394
456
395
- This is where you list OS compatibility, version compatibility, etc.
396
457
397
458
## Development
398
459
399
- Since your module is awesome, other users will want to play with it. Let them
400
- know what the ground rules for contributing are .
460
+ Contributions are always welcome. Please read the [ Contributing Guide ] ( CONTRIBUTING.md )
461
+ to get started .
0 commit comments