Fork me on GitHub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
enable_pre-action_script_for_multiple_backup_configuration_directories [2012/04/06 06:04]
henri [Install pre-action script into multiple LBackup configuration directories]
enable_pre-action_script_for_multiple_backup_configuration_directories [2012/04/06 07:03]
henri [Install pre-action script into multiple LBackup configuration directories]
Line 11: Line 11:
 **Assumptions** **Assumptions**
  
-  * Backup configurations are located within ///​etc/​lbackup///​ directory.+  * Backup configurations are located within // /​etc/​lbackup/​ // directory. 
 +  * You have not created sub-directories for configuration files (eg. to sort into specific groups)
   * Pre-Action you wish to copy into all configuration directories is //​BACKUP-200-ReportBackupDiskUsagePercentage.bash//​   * Pre-Action you wish to copy into all configuration directories is //​BACKUP-200-ReportBackupDiskUsagePercentage.bash//​
   * You are using a BASH shell (if you are using a different shell then there is probably a better approach).   * You are using a BASH shell (if you are using a different shell then there is probably a better approach).
Line 24: Line 25:
 </​file>​ </​file>​
 The command above generates a file ///​tmp/​lbackup-config-backup-__dateandtime__.tar.gz//,​ which you should check and then move to somewhere else preferably offsite. If you would prefer to use a differnt utility to perform the backup go ahead; rsync, lbackup, cp are all  possibilities. Do whatever works for you. Just check that what ever method you seattle on is preserving the meta-data you require. ​ The command above generates a file ///​tmp/​lbackup-config-backup-__dateandtime__.tar.gz//,​ which you should check and then move to somewhere else preferably offsite. If you would prefer to use a differnt utility to perform the backup go ahead; rsync, lbackup, cp are all  possibilities. Do whatever works for you. Just check that what ever method you seattle on is preserving the meta-data you require. ​
-\\  +\\ \\  
-  * TIP : Use a revision control system such as git to manage your configuration directories. +  * TIP : Use a revision control system such as [[git-scm.com/​|git]] ​to manage your configuration directories.
 \\  \\ 
 **Step 2** \\  **Step 2** \\