Skip to content

Commit

Permalink
Merge pull request #77 from nrhodes91/feature/debian-php-directory-ba…
Browse files Browse the repository at this point in the history
…ckup

Update copy_dir function to include subdirectories
  • Loading branch information
popindavibe authored Sep 13, 2018
2 parents 4745dbc + c0e7212 commit 7ef31de
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 105 deletions.
12 changes: 6 additions & 6 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
configsnap is maintained by:
```
- Paolo Gigante
- Nicholas Rhodes
- Paolo Gigante
- Nicholas Rhodes
- Jean-Yves Michaud
```

Original author at Rackspace (http://www.rackspace.co.uk):
```
- Cian Brennan
- Cian Brennan
```

Major contributors:
```
- Cameron Beere
- Piers Cornwell
- Cameron Beere
- Piers Cornwell
```

5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
configsnap NEWS

0.15
* Added new function `copy_dir` to backup the content of an entire directory

0.14
* Adjusted -w option to only overwrite specific tagged files
* Add option to compare existing files without gathering new data using the -C/--compare-only option
Expand Down Expand Up @@ -29,7 +32,7 @@ configsnap NEWS
* Added man page
* Record dm-multipath information
* Continue if lvm isn't present
* Allow PowerPath to be present, but with no LUNs
* Allow PowerPath to be present, but with no LUNs

0.10
* Initial public release
41 changes: 23 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# configsnap

Records useful system state information, and compare to previous state if run with PHASE containing "post" or "rollback".
Records useful system state information, and compare to previous state if run
with PHASE containing "post" or "rollback".

Tested on RHEL, CentOS, Fedora and Ubuntu, but should also work on other derivatives. For other distros, config will be collected where the commands or file locations match RHEL or Ubuntu.
Tested on RHEL, CentOS, Fedora and Ubuntu, but should also work on other
derivatives. For other distros, config will be collected where the commands or
file locations match RHEL or Ubuntu.

```
Usage: configsnap [options]
Expand Down Expand Up @@ -43,27 +46,29 @@ Getting cluster status...
Getting misc (dmesg, lspci, sysctl)...
Getting Dell hardware information...
Copying files...
/boot/grub/grub.conf
/etc/fstab
/etc/hosts
/etc/sysconfig/network
/etc/yum.conf
/proc/cmdline
/proc/meminfo
/proc/mounts
/proc/scsi/scsi
/etc/sysconfig/network-scripts/ifcfg-eth3
/etc/sysconfig/network-scripts/ifcfg-lo
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/network-scripts/route-eth2
/boot/grub/grub.conf
/etc/fstab
/etc/hosts
/etc/sysconfig/network
/etc/yum.conf
/proc/cmdline
/proc/meminfo
/proc/mounts
/proc/scsi/scsi
/etc/sysconfig/network-scripts/ifcfg-eth3
/etc/sysconfig/network-scripts/ifcfg-lo
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/network-scripts/route-eth2
Finished! Backups were saved to /root/junepatching/configsnap/*.pre
```

Custom collection of additional command output (Type: command) and files (Type: file) can be configured in the file /etc/configsnap/additional.conf, for example:
Custom collection of additional command output (Type: command) and files (Type:
file) can be configured in the file /etc/configsnap/additional.conf, for
example:

```
[psspecial]
Expand Down
10 changes: 10 additions & 0 deletions additional.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
# File: [ source filename ]
#
# [section]
# Type: directory
# Directory: [ full command to run ]
# File_Pattern: [ regular expression to match filenames ]
#
# [section]
# Type: command
# File: [ full command to run ]
# Sort: [ True | False ] (optional)
Expand All @@ -23,3 +28,8 @@
# [debconf.conf]
# Type: file
# File: /etc/debconf.conf
#
# [ssh]
# Type: directory
# Directory: /etc/ssh/
# File_Pattern: sshd.*
Loading

0 comments on commit 7ef31de

Please sign in to comment.