Changes

From SME Server
Jump to navigationJump to search
577 bytes removed ,  13:45, 16 October 2008
Line 205: Line 205:     
====Adding Directories and Files to the list of backup inclusions====
 
====Adding Directories and Files to the list of backup inclusions====
 +
 +
{{Warning box|The e-smith-backup panel is designed to be used as a full disaster recovery backup & restore method for your sme server, and as such relies on the correct directories being included in the backup. Do not delete any of the default directories from 40go-into as these are all essential for a successful full Restore of your backup to a clean install of the sme server operating system (you will need to reinstall add on apps or contribs). You can safely add directories eg /opt, as indicated, but that should typically be the extent of changes made.}}
    
The default backup does not include /opt
 
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.
 
To add /opt to the backup inclusion list, create a custom template fragment and add opt to the list.
  −
  −
{{Warning box|The e-smith-backup panel is designed to be used as a full disaster recovery backup & restore method for your sme server, and as such relies on the correct directories being included in the backup. Do not delete any of the default directories as these are all essential for a successful full Restore of your backup to a clean install of the sme server operating system (you will need to reinstall add on apps or contribs). You can safely add directories eg /opt, as indicated, but that should typically be the extent of changes made to the 40go-into fragment.}}
  −
      
Create custom template fragment
 
Create custom template fragment
 
  mkdir -p /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf
 
  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
 
Edit the fragment to add needed files and directories
  pico -w /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/40go-into
+
  pico -w /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/41go-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
 
  --go-into opt
  

Navigation menu