Line 217: |
Line 217: |
| | | |
| The next time the backup runs, the resultant backup file will be split into 1.529Gb part sizes. | | The next time the backup runs, the resultant backup file will be split into 1.529Gb part sizes. |
| + | |
| + | |
| + | ====Adding Directories and Files to the list of backup inclusions==== |
| + | |
| + | The default backup does not include /opt |
| + | |
| + | To add /opt to the backup inclusion list, create a custom template fragment and add opt to the list. |
| + | |
| + | Create custom template fragment |
| + | mkdir -p /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf |
| + | cp /etc/e-smith/templates/etc/dar/DailyBackup.dcf/40go-into /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf |
| + | |
| + | (the above cp command is all on one line) |
| + | |
| + | Edit the fragment to add needed files and directories |
| + | pico -w /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/40go-into |
| + | |
| + | Change the default list to read as follows (or as you require) |
| + | --go-into etc/e-smith/templates-custom |
| + | --go-into etc/e-smith/templates-user-custom |
| + | --go-into etc/group |
| + | --go-into etc/gshadow |
| + | --go-into etc/passwd |
| + | --go-into etc/samba/secrets.tdb |
| + | --go-into etc/samba/smbpasswd |
| + | --go-into etc/shadow |
| + | --go-into etc/smbpasswd |
| + | --go-into etc/ssh |
| + | --go-into etc/sudoers |
| + | --go-into home/e-smith |
| + | --go-into root |
| + | --go-into opt |
| + | |
| + | Then expand the template |
| + | expand-template /etc/dar/DailyBackup.dcf |
| + | |
| + | |
| + | Check your backup (eg using the mc dar plugin) to see that /opt is now included. |
| + | It is also prudent to do a test full restore and verify that /opt (& all other backed up directories & files) are restored, as anticipated. |
| + | If something is wrong with your backup or restore procedures, then required files may not be backed up and restored, so it is wise to do a test full backup & restore to fully prove your procedures are working correctly. |
| | | |
| ==='''Removal/uninstall information'''=== | | ==='''Removal/uninstall information'''=== |