“备份和还原模块配置”的版本间的差异

来自最权威最新完整开源SIP,语音通信,融合通信中文技术文档资料,提供详细的Asterisk Freepbx, FreeSBC, 免费会话边界控制器,网关,语音板卡,IPPBX,SBC配置资料-asterisk,freepbx,freesbc 用户手册 界面配置,呼叫路由,IVR, 网关对接,拨号规则,SIP 分机呼叫,pjsip, IVR, 录音, CDR, 队列呼叫,振铃组,CLI 命令中文资料手册
跳转至: 导航搜索
第1行: 第1行:
'''Using the Backup module'''
+
'''备份还原模块用户使用指南'''
  
 
注意,此模块已经在13版本更新,请检查。
 
注意,此模块已经在13版本更新,请检查。
第21行: 第21行:
 
'''Backups'''
 
'''Backups'''
  
The Backups section of the backup module is where you actually define a backup job. You can create as many backup jobs as you want and set when and how often they should run, what should be included in the backup, and where to store it.
+
备份模块支持用户对系统必要文件进行安全备份。 用户可以创建一个备份任务,根据时间周期来定期执行任务进行备份。
  
 
'''Restores'''
 
'''Restores'''
  
The Restore section of the backup module is where you restore from a backup. You can restore from a backup on your local computer or from any defined FTP, SSH or Local storage server.
+
还原模块则是如果系统出现故障以后,用户可以把备份的文件通过还原模块来进行系统还原。用户可以通过本地还原,FTP还原或者SSH,或者本地存储服务器还原。
  
 
'''Servers'''
 
'''Servers'''
  
The Servers section is where you define any PBX servers or database tables that you want to backup configurations from. You also define Linux boxes or FTP servers you want to store the backups on.
+
服务器部分是用来定义哪一台服务器或者数据库需要进行备份配置。用户也可以配置一台linux服务器或者FTP服务器来进行备份任务。
  
 
'''Templates'''
 
'''Templates'''
  
Templates are used to create groups of files, directories, or databases that you want to include in a backup. We have defined some standard templates for you already, but you can add your own custom templates. When creating a backup job, you can drag one or more templates into it to define what is going to be backed up.
+
模板用来创建文件组,路径,或者数据库,这些数据可以包括在备份文件中。我们已经定义了一些标准的模板,当然用户也可以添加自己的模板。 当创建备份任务时,用户也可以通过鼠标拖拉这些模板,添加这些模板到备份任务中。
  
 
'''Backup Settings'''
 
'''Backup Settings'''
  
Click the '''New Backup''' button to create a new backup, or click an existing backup to edit its settings.
+
点击 '''New Backup''' 按钮创建一个新的备份任务,或者点击已存在的备份进行编辑设置。
  
 
http://wiki.freepbx.org/download/attachments/26509506/backup-name-description.png
 
http://wiki.freepbx.org/download/attachments/26509506/backup-name-description.png
第43行: 第43行:
 
'''Backup Name'''
 
'''Backup Name'''
  
Give your backup job a name to easily identify it.
+
指定一个备份文件名称。
  
 
'''Description'''
 
'''Description'''
  
Here you can optionally define a longer description or add notes.
+
对其备份添加描述。
  
 
'''Status Email'''
 
'''Status Email'''
  
If defined, the system will send status updates to this e-mail address when the backup task is run.
+
如果已定义,备份开始运行时,系统会发送状态更新数据到邮箱。
  
 
'''Backup Items'''
 
'''Backup Items'''
第59行: 第59行:
 
'''Items'''
 
'''Items'''
  
This is where you choose what will actually be backed up. On the right side you will see a list of standard templates that are included with your PBX. The most standard template you would want to use for a normal daily backup is the '''Full Backup'''.
+
选择备份项。
  
To include the full backup template, drag it from the '''Templates''' bin to the '''Items '''bin.
+
如果选择完整备份,从这些相关项目拖拉进来。
  
APPLICATION NOTE
+
''注意''
  
Advanced users can also press http://wiki.freepbx.org/download/attachments/26509506/plus-sign.png to add your own files or directory paths to be included in a backup.
+
高级用户可以按 http://wiki.freepbx.org/download/attachments/26509506/plus-sign.png 添加自己的文件或者路径。
  
Please see templates section on how to modify or create your own templates.
+
完成添加项目后,用户可以看到所有需要备份的项目:
 
+
Once you add an item, you will see the items that will be backed up, as well as any exclusions:
+
  
 
http://wiki.freepbx.org/download/attachments/26509506/backup-items.png
 
http://wiki.freepbx.org/download/attachments/26509506/backup-items.png
  
APPLICATION NOTE
+
''注意''
  
The Full Backup template does not include any voicemails, custom music on hold, or system prompt recordings. If you want these to be included, drag the “System Audio” and “Voicemail Templates” from the '''Templates''' bin to the '''Items''' bin.
+
完整备份中没有包括语音邮箱,自定义的音乐等待,系统提示录音文件。如果用户需要添加这些文件,使用鼠标从模板中拖“System Audio”和“Voicemail Templates”到需要备份的项目中。
  
 
'''Hooks'''
 
'''Hooks'''

2015年10月25日 (日) 09:24的版本

备份还原模块用户使用指南

注意,此模块已经在13版本更新,请检查。


总览

备份生成呼叫的PBX是非常重要的工作。我们提供商业版本的备份还原模块。请不要删除标注"Schmooze POMPs",否则你的备份可能不能保存。

再次提示,备份工作的IPPBX系统是非常重要的工作,请务必谨慎操作。

Logging in

  • 点击顶部菜单 Admin
  • 下拉菜单中点击 Backup & Restore

在右侧栏中,系统会列出不同的备份模块。

backup-restore-home-screen.png

Backups

备份模块支持用户对系统必要文件进行安全备份。 用户可以创建一个备份任务,根据时间周期来定期执行任务进行备份。

Restores

还原模块则是如果系统出现故障以后,用户可以把备份的文件通过还原模块来进行系统还原。用户可以通过本地还原,FTP还原或者SSH,或者本地存储服务器还原。

Servers

服务器部分是用来定义哪一台服务器或者数据库需要进行备份配置。用户也可以配置一台linux服务器或者FTP服务器来进行备份任务。

Templates

模板用来创建文件组,路径,或者数据库,这些数据可以包括在备份文件中。我们已经定义了一些标准的模板,当然用户也可以添加自己的模板。 当创建备份任务时,用户也可以通过鼠标拖拉这些模板,添加这些模板到备份任务中。

Backup Settings

点击 New Backup 按钮创建一个新的备份任务,或者点击已存在的备份进行编辑设置。

backup-name-description.png

Backup Name

指定一个备份文件名称。

Description

对其备份添加描述。

Status Email

如果已定义,备份开始运行时,系统会发送状态更新数据到邮箱。

Backup Items

backup-items-drag-list.png

Items

选择备份项。

如果选择完整备份,从这些相关项目拖拉进来。

注意

高级用户可以按 plus-sign.png 添加自己的文件或者路径。

完成添加项目后,用户可以看到所有需要备份的项目:

backup-items.png

注意

完整备份中没有包括语音邮箱,自定义的音乐等待,系统提示录音文件。如果用户需要添加这些文件,使用鼠标从模板中拖“System Audio”和“Voicemail Templates”到需要备份的项目中。

Hooks

Hooks allow you to base the backup job on the following actions in order to execute a custom script at the location defined for each action. This is for advanced users who would like to customize the following actions.

APPLICATION NOTE

Make sure your script has execute permissions for the Asterisk user.

backup-hooks.png

Pre-Backup Hook

Hook to run before starting the actual backup.

Post-Backup Hook

Hook to run after completing the backup.

Pre-Restore Hook

Hook to run before starting the actual restore of the backup.

Post-Restore Hook

Hook to run after completing the restore of the backup.

Backup Server

This is where you choose which server to back up. This can be the local PBX that the backup module is on, or it could be another PBX as defined in the servers section of the backup module. Please see the server section for more information on defining other servers. Most of the time you will pick “This Server,” since that is what we want to back up.

backup-server.png

''''Storage Location

Storage locations are servers that have been set up to store the actual backup on. By default we include the local server as a storage location.

Local Storage: The backup tarball file is stored in "/var/spool/asterisk/backup/(backupjobname)/*.tgz" on the local machine

The Available Servers list shows servers that have been set up to store the backup as defined in the servers section of the backup module. Please see server section for more information on defining other servers.

storage-servers.png

The Storage Servers list defines where to store the backups. Drag one or more storage servers from the Available Servers bin to the Storage Servers bin.

selected-server.png

Backup Schedule

backup-schedule.png

Never

Never run the backup

Hourly

Every hour at the top of the hour

Daily

Every day at midnight

Weekly

Every Sunday at midnight

Monthly

This first of each month at midnight

Annually

January 1st at midnight

Reboot

On a reboot command of the PBX an upgrade will be run.

Custom

Allows you to define your own schedule on when to run upgrades.

custom-backup-schedule.png

Maintenance

Here we can define how many copies of the backup we want to keep and when they should be deleted

maintenance.png

Delete After Time Frame

Here you can define increments, for example delete after 3 months or 5 weeks.

Delete After Runs

Here you can define how many copies of the backup to delete versus deleting backups by time frame such as only keep fifteen. On the 16th backup the oldest backup will be deleted from the system. We recommend keeping 7-10 backups only to conserve hard drive space

Save

When you have things the way you want them, click the Save button.

save-button.png

Run

You can manually run your backup at any time by visiting the Backups section and clicking the run button backup-in-list.png

backup-status.png


When you do this, a window will pop-up displaying the status of the backup. You should see "Backup successfully completed!"


Restore

In the Restore section, you can select a server to restore the backup from, or select a backup file on your local computer.

Restoring from a Server

Available servers are shown at the bottom of the list on the right side of the screen. Select a server.

server-list-restore-from.png

Available backups will be displayed. Browse the folders to view available files.

list-of-files.png

Browse the folders and select a backup to restore from. More details will be shown to the right.

backup-to-restore-from.png

Click the Go! button. You will be taken to a page where you can select which items to restore.

Use the checkboxes to select which items you would like to restore, then click the Restore button.

restore-selections.png

A window will pop up showing the status of the restore.

running-restore.png

The status window will say Done! when the restore is complete.

restore-complete.png

Restoring from a Local File

You can upload a backup file from your local computer if you have it stored on the same computer you are using to log into the Backup & Restore module.

In the Restore section of the Backup & Restore module, click the Browse button.

browse-button.png

Select a file from your local computer.

Click the Restore button to begin the restore process. You will be taken to a page where you can select which items to restore.

Use the checkboxes to select which items you would like to restore, then click the Restore button. restore-selections.png

A window will pop up showing the status of the restore.

running-restore.png

The status window will say Done! when the restore is complete.

restore-complete.png

Servers

The Servers section shows the servers that have been created and allows you to create new servers.

servers-main-page.png

Backup Server Types

Email

Sends a backup file as an email attachment.

FTP

Sends a backup file to an FTP server. The backup can be directly restored from the FTP server.

Local

This is the local PBX (server) that the backup is stored on. The backup job will be performed on this local server and can be restored from here as well.

MySQL Server

This is where we define where the MySQL server is located and how to log into it so we can back up the database.

SSH Server

This could be another PBX that you log into and perform the backup on. For example, if you have a warm spare backup box, you would set up the backup job on the warm spare to log into the production server, perform the backup on the production server, and then move the backup file to the backup server and restore it on a nightly basis.

APPLICATION NOTE

You can also define a SSH server for storing backups just like an FTP server, and using SCP to copy the files over to the SSH server. Any Linux box that supports SCP can be an SSH Server.

 

Templates

The Templates section shows the templates that have been created and allows you to create or edit templates.

templates-list.png

Templates that were included at install cannot be modified. You can create your own templates, but there typically is no need for this unless you need to want to simplify the process of including custom files, directories, or databases in a backup. You can create a template for the custom files, then drag that template into a backup job instead of adding the custom files to the backup one-by-one.

''''Creating a Template

In the Templates section of the Backup & Restore module, click the New Template button.

When creating a template you will need to give it a name and optionally, a description.

backup-template-name-desc.png

Click the plus sign button plus-sign.png select which files, directories or databases will be included. Select the item type and then fill in the appropriate fields. Repeat the process for each type of item you would like to add to the template.

menu-options-template.png


The example below shows the four types of items that can be chosen from the drop-down menu.

template-custom-items.png

Click the Save button when finished. save-button.png