Changes

Jump to navigation Jump to search
Line 3: Line 3:     
====Backup or restore====
 
====Backup or restore====
You can easily back up the contents of your SME Server using one of two methods. Both are controlled through the web panel shown below.
+
You can easily back up the contents of your SME Server using one of three methods. They are controlled through the web panel shown below.
 +
 
 +
{{Note box|The console backup to USB device is an independent method not related to these options. [[:SME_Server:Documentation:Administration_Manual:Chapter6#Option_8:_Perform_backup_to_USB_device]]
 +
When prompted if you wish to restore from a backup during a new install, it is the console backup it is refering to. The following backup methods are restored from the server manager.}}
    
[[Image:Backup.png]]
 
[[Image:Backup.png]]
   −
You have five actions you can perform, each of which is described in the following sections.
+
You have seven actions you can perform, each of which is described in the following sections.
    
=====To desktop=====
 
=====To desktop=====
======Backup to desktop======
+
'''Backup to desktop'''
 +
 
 
The first type of backup allows you to save a snapshot of your server configuration onto your desktop computer. This will save all user accounts, user directories, i-bay contents and web content, as well as the configuration parameters entered using the server console and the server manager. The web panel shows you the size of the backup file so that you can verify whether sufficient space exists on your desktop machine.   
 
The first type of backup allows you to save a snapshot of your server configuration onto your desktop computer. This will save all user accounts, user directories, i-bay contents and web content, as well as the configuration parameters entered using the server console and the server manager. The web panel shows you the size of the backup file so that you can verify whether sufficient space exists on your desktop machine.   
   Line 18: Line 22:  
to perform large backups to locally attached USB disks or network shares.
 
to perform large backups to locally attached USB disks or network shares.
   −
======Restore from desktop======
+
The compression level of the backup *.tgz file can be altered by the "db configuration setprop backupconsole CompressionLevel=value" this then will decrease or increase the time taken to create the backup.
 +
 
 +
To regulate the speed of compression using the specified digit n, where `-1' indicates the fastest compression method (less compression) and or `-9' indicates the slowest compression method (optimal compression). The default compression level is `-6' (that is, biased towards high compression at expense of speed).
 +
 
 +
Setting level of compression via custom db setting
 +
db configuration setprop backupconsole CompressionLevel=-9
 +
 
 +
'''Restore from desktop'''
 +
 
 
Restore from Desktop was removed in version 7.4
 
Restore from Desktop was removed in version 7.4
   Line 24: Line 36:     
=====To Tape=====
 
=====To Tape=====
======Configure tape backup======
+
{{Warning box|Be aware that you must use a supported tape drive and that a tape must be inserted in the drive for the backup to work.}}
 +
 
 +
'''Configure tape backup'''
 +
 
 
The second type of backup involves configuring your system to perform a daily full system backup to a tape drive using a software package called flexbackup . If you wish to activate this option, check the box next to Enable Tape Backup and then specify the time at which you wish the backup to occur and the time at which reminder notices should be sent.
 
The second type of backup involves configuring your system to perform a daily full system backup to a tape drive using a software package called flexbackup . If you wish to activate this option, check the box next to Enable Tape Backup and then specify the time at which you wish the backup to occur and the time at which reminder notices should be sent.
   −
{{Warning box|Be aware that you must use a supported tape drive and that a tape must be inserted in the drive for the backup to work.}}
+
{{Note box|Reminder e-mail messages for tape backups are automatically sent to the e-mail address that is configured to receive administrative notices. This is normally the user admin, but you can change this in the server manager.}}
   −
{{Note box|Reminder e-mail messages for tape backups are automatically sent to the e-mail address that is configured to receive administrative notices. This is normally the user admin, but you can change this in the server manager.}}
+
'''Restore from tape'''
   −
======Restore from tape======
   
If you are performing regular backups, you can also restore user data and configuration settings by using the Restore from tape option. After you press the Perform button, the system will read the files from tape and overwrite any currently existing files. You must reboot your system after the restore for the changes to take effect. Note that in order to restore data from tape, you must have first checked off Enable Tape Backup and scheduled nightly backups. If you have not done this, you will not be able to restore from tape using the server manager.
 
If you are performing regular backups, you can also restore user data and configuration settings by using the Restore from tape option. After you press the Perform button, the system will read the files from tape and overwrite any currently existing files. You must reboot your system after the restore for the changes to take effect. Note that in order to restore data from tape, you must have first checked off Enable Tape Backup and scheduled nightly backups. If you have not done this, you will not be able to restore from tape using the server manager.
    
{{Warning box|Note that this restore procedure only restores user data and configuration information. It does not restore system files. If you experienced a serious system crash, you should first re-install the SME Server software and then perform a restore from tape.}}
 
{{Warning box|Note that this restore procedure only restores user data and configuration information. It does not restore system files. If you experienced a serious system crash, you should first re-install the SME Server software and then perform a restore from tape.}}
   −
=====To Workstation=====
+
=====To Workstation or USB Drive=====
 
Backup to workstation provides for daily full or incremental backup on LAN workstation (via nfs or cifs) or local usb disk, and full or selective restore with use of dar program.
 
Backup to workstation provides for daily full or incremental backup on LAN workstation (via nfs or cifs) or local usb disk, and full or selective restore with use of dar program.
 +
 +
{{Note box|msg=When using a CIFS mount you need to be aware of limitations in the characters you can choose in your password. According to the [http://linux.die.net/man/8/mount.cifs man mount.cifs] page comma's should be avoided, but users have also noticed that leading spaces and exclamation marks should not be used. For more details see [[bugzilla:4850]].}}
 +
 +
{{Note box|msg=To enable backup via nfs you will need to install nfs-utils from base: yum install nfs-utils
 +
 +
For further information please see this bug http://bugs.contribs.org/show_bug.cgi?id=7006
 +
[[bugzilla:4850]].}}
    
The main features of backup with dar aside use of session timeout are:
 
The main features of backup with dar aside use of session timeout are:
Line 47: Line 68:  
The third function is selective restore of any saved file or directory, exactly as it was for any of the saved days in your sets. Not only you can restore a lost file at it's last state, but also say : make restore of the most recent version of the file before this given date... Selective restore is not an easy thing to manage by hand, and providing this in a simple way with panels is useful. Dar permits to manage selective restore and e-smith-backup with dar panels tries to keep this function as simple as possible to use.  
 
The third function is selective restore of any saved file or directory, exactly as it was for any of the saved days in your sets. Not only you can restore a lost file at it's last state, but also say : make restore of the most recent version of the file before this given date... Selective restore is not an easy thing to manage by hand, and providing this in a simple way with panels is useful. Dar permits to manage selective restore and e-smith-backup with dar panels tries to keep this function as simple as possible to use.  
   −
For changes to standard usage see [[:Backup_with_dar]]
+
{{Tip box|msg='''For a comprehensive explanation with multiple examples see [[:Backup_with_dar]]'''}}
 +
 
 +
'''Configure workstation backup'''
   −
======Configure workstation backup======
+
Configure your backup destination and options to suit your situation.
Change these to suit your particular situation.
     −
In a typical scenario with Windows workstations backing up to a removable or shared drive in a workstation, with a weekly full backup on Friday and subsequent daily incremental backups & you wish to retain 2 backup sets on each disk, with backup to start at 8pm and finish at 8am, use the following settings.
+
'''Verify workstation backup'''
   −
Backup is enabled.
+
This option allows you to verify that the backup was completed successfully.  
   −
Backup is made on LAN workstation netshare via cifs
+
'''Restore from workstation'''
   −
Destination backup share folder is backup
+
This option allows you to restore a complete backup. This should ideally only be performed on a clean install.
   −
Login is backupuser
+
'''Selective file restore from workstation'''
   −
Password is ********
+
This option allows you to restore a single file. You have the option of restricting the file to a date range.
   −
Number of rotating backup sets is 2
+
=====Use WOL to power on Workstation=====
 +
Wake On Lan can be used to power up the backup target workstation before starting the backup.
   −
Number of daily backups contained in each set is 7
+
To use WOL there simply needs to be a new variable added to the backupwk section of the configuration database, nothing else is required. This variable holds the MAC address of the target workstation, if the MAC address is 00:4E:89:F5:FD:2B use:
   −
Compression level (0-7) of backup is 4
+
db configuration setprop backupwk SmbHostMAC 00:4E:89:F5:FD:2B
   −
Daily backup occurs at 20:00
+
There is also the ability to specify how long to wait between the WOL packet being sent and attempting to start the backup process. The default wait time is 300 seconds, this can be varied via another configuration database setting. It is recommended to not set the wait period below 300 seconds. To set the wait time to 600 seconds:
   −
Each daily backup session is cleanly timed out after 12h except full backups which are cleanly timed out after 24 hours
+
db configuration setprop backupwk SmbHostDelay 600
   −
Full backup session (new backup sets) is allowed only on Friday
+
The target system must support, and be set up to respond to, the WOL "magic packets". The network infrastructure must also support WOL packets. WOL should work across the local network without problem. WOL packets are not routeable so it won't work across the internet without additional support from hardware and/or software such as a VPN tunnel. Getting WOL to work across the internet is beyond the scope of this documentation but there are plenty of resources available elsewhere. Most wireless connected devices do not work with WOL.
   −
======Verify workstation backup======
+
Note that there is no checking that the supplied MAC address is the correct one for the IP address/hostname of the target workstation. MAC address's are effectively static but IP address's/hostnames can change particularly if the target gets its IP address via DHCP. It is quite possible to have the correct target woken up and be ready but the backup to fail because the IP address has changed. However SME's DHCP server very rarely changes the IP address of a given MAC address.
This option allows you to verify that the backup was completed successfully.  
+
 
 +
To stop using WOL simply delete the SmbHostMAC variable:
 +
 
 +
db configuration delprop backupwk SmbHostMAC
   −
======Restore from workstation======
+
and to be tidy if the optional delay parameter has been set:
   −
======Selective file restore from workstation======
+
  db configuration delprop backupwk SmbHostDelay
    
====View log files====
 
====View log files====

Navigation menu