Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


Excerpt

This section describes the backup and restoration features available within the server administration module.

Backup and Restore Overview

Clicking on the "Backup & Restore" tab will reveal the following panel:

Image Modified

The screen is divided into two columns:

  • The left hand side represents backup tasks and schedules.
  • The right hand side lists all the backups performed according to the associated task.

Backup Task Panel

The backup task panel contains a toolbar of backup and restoration actions, along with a list of backup tasks:

Image Modified

The backup and restoration tools available are defined as follows:

Image Modified

Edit the selected backup task. Use for example to change a daily backup to a weekly backup schedule.

Image Modified

Add a new backup task. Use for example to start backing up files daily.

Image Modified

Delete the selected backup task. Used to stop executing backups.

Image Modified

Upload a backup from the administrator's local machine. Used to immediately restore data that you have locally available.

Image Modified

Perform an immediate backup if the "manual" or "uploaded" rows are selected. If a configured backup task is selected, executes it immediately including it's associated offsite backup.

Image Modified

Refresh the backup list. This is used in case the list is ever out of date because of a background backup task that happened while the panel was already opened.

Image Modified

Open context-specific help relating to backup and restoration.

Below the toolbar is a list of backup tasks. Two items are permanently displayed:

ManualList all manually backed up datasets (e.g. backup immediately)
UploadedList all manually uploaded datasets (e.g. uploaded by the administrator)

The other items in the list (for example 'daily' in the example above) are backup tasks that have been configured by the administrator to execute automatically. For instance daily backups, weekly backups, etc. Selecting a row from the list will visualize a filtered list in the backup task listing on the right hand side.

Backup Listing

Every backup task has a set of backup files associated with it (which could be empty). Selecting a backup task on the left will show a filtered list of backups on the right:

Image Modified


Each backup row shows it's date, size, version and a set of actions available to be performed with that particular backup. Consult the following table for more details:

Backup ColumnExampleMeaning
Date22/03/17, 12:41:47The backup was taken on March 22, 2017 at 12:41:47
Size8.63 MBThe backup occupies 8.63 MB of space
Version0.0.153 / 7

The configuration that was backed up has version 0.0.153

The data that was backed up has version 7

Action

Image Modified

Download, Restore and Delete operations on that backup


Info
titleBackup Data or Configuration?

Configuration and data backups are handled separately. The reason for this is that you might want to back up your data when upgrading to a clustered deployment. Doing so would require radically different configuration, but the same underlying data. In that situation you would only restore the data.

Manual Backup

There are two kinds of backups which can be executed. The first and simplest is a manual back, which we'll describe here. A manual backup is executed immediately, and the data is stored within the VM. This is likely not where you'll want to store the backup files long term, so it's assumed that you'll download a local copy and store it someplace safe outside of the virtual image.

Select the 'manual' entry in the backup tasks on the left

Image Modified

Click on the backup now icon Image Modified to initiate an immediate backup. After a moment you will see it listed on the right hand side:

Image Modified

Your backup is now complete, but unfortunately it's stored within your VM which isn't ideal. You should download a copy to your local device and then back it up somewhere of your choosing.

Click the backup tool Image Modified  of the backup set to download. You will be prompted if you want to download the configuration or data:

Image Modified

Select configuration followed by OK and the configuration data will be downloaded to your local machine. Repeat this procedure, downloading the data instead. You will now have two archives locally which you can use to restore configuration and/or data at any point in the future.

Restoring from Backups

Once you have a backup you must be able to restore it. If the data is already contained in your VM as a backup set, you can restore it directly from there without uploading it in to your VM. If however you backed up your data somewhere manually (as suggested above), you'll need to upload your archives into the VM first.

Uploading Backups to the VM

Select the Uploaded row from the backup tasks on the left hand side to see all uploaded backup sets:

Image Modified

Ensure that your backup is not listed on the right hand side. This document assumes that it is not listed there. Click the upload action Image Modified from the backup toolbar. You will then be asked to select a file from your local machine.

Image Modified

You can select either configuration or data backups, and the upload will automatically detect which type was provided. Here we are assuming you selected a data backup set.

Note

It's important to understand that uploading a backup set is not the same thing as restoring it. It has simply been copied into the virtual machine.

Once the upload is complete, you will see it listed on the right hand side:

Image Modified

Restoring Backups

Once a backup set has been located within the VM (and it can be within any of the filters from the backup task list on the left), you can restore it. 

Note

A backup set may contain configuration information, or user data, or both

Prior to restoring a data set you must shut down the active processes. Click on manage servers on the left, and then select your active server:

Image Modified

Click the manage button on the right to expand the server details:

Image Modified

Select the "web server" process followed by clicking the stop icon Image Modified from the top menu. After a few moments you'll see the server listed with a warning that some processes are stopped:

Image Modified

Return to the backup and restore tab and select the "uploaded" backup task filter. Locate the backup set you wish to restore.

Image Modified

Once you identified backup set, click the restore action Image Modified. You will then be asked if you want to restore configuration or data. Assuming you chose a backup set with data in it, select the data option (again, assuming that's what you're attempting to restore):

Image Modified

After clicking OK wait a few moment. When the operation completes, you will be returned to the backup set listing.

Congratulations - you've restored from backup!

Scheduling Backups

Scheduling automated backups is an important component of any backup strategy. You can configure FileFlex to automate backups on a variety of schedules, but something similar to a daily and weekly combination is recommended.

Creating an Automated Backup Task

Start by clicking the new backup task button Image Modified from the backup toolbar. You will then be presented with a scheduling dialog box:

Image Modified

This is where you control exactly when the backups will be executed for this particular backup task.

Info

You may have any number of concurrently configured independent backup tasks. For example you can have daily backups, weekly backups, and first of the month backups.

Start by entering a name for your backup task:

Image Modified

Select a backup start time (defined in Greenwich Mean Time - GMT) for the backup set. For example, we will select midnight GMT:

Image Modified

Note

You can optionally use the diamond shaped control to the right of the time selection to increment the minutes and hours.

The next step is to select the time period for the backups.

One Time Backups

One time backups allow you to backup on a specific day at a specific time one time.

Select "Once" from the period dropdown:

Image Modified

A summary will be shown along with an empty date field.

Image Modified

Click in the date field to reveal the date picker:

Image Modified

Select the date you want the backup performed.

Daily Backups

Daily backups allow you to backup every day at the specified time.

Select "Daily" from the period dropdown:

Image Modified

Weekly Backups

Weekly backups allow you to backup once a week on a selected day of the week at the specified time.

Select "Weekly" from the period dropdown:

Image Modified

Select the day of the week you'd like to have the backups performed:

Image Modified

Monthly Backups

Monthly backups allow you to backup once a month on a selected day of the month at the specified time.

Select "Monthly" from the period dropdown:

Image Modified

Select the date (day of the month) you'd like to have the backups performed:

Image Modified

Note

Only 28 days are allowed in the monthly backup schedule. It is not possible to select the 29th, 30th, or 31st of the month.

Number of Backup Copies

Since backups consume space within the virtual machine, it's important to limit the number of copies to retain for any backup task. 

Image Modified

Drag the slider left or right to adjust the number copies. Values from 1 to 100 may be selected.

Info

It's a good idea to set the number of copies to a value that matches your time period. For example consider using 7 copies of a daily backup task, combined with 4 copies of a weekly backup task, combined with 12 copies of a monthly backup task to get a complete combination of backups from which to restore.

Once you're satisfied with your settings, click OK to confirm the backup schedule. You will then see your new entry in the list of backup tasks:

Image Modified

Congratulations - you've finished configuring your first backup schedule!

Offsite Backups

Offsite backups are a mechanism of automating the uploading of backup task results to a remote server. Keeping offsite copies allows you to automate the extraction of backup data from the FileFlex virtual machine and into your external servers for safe keeping.

Info

Offsite backups work with SFTP and rely on public/private keys to secure the transfers. Ensure that you have a public key enabled SFTP upload target before proceeding with this tutorial.

To enable offsite backups within your backup task, select the "Upload" tab in the backup task dialog:

Image Modified

You will then have to click the "Offsite Backup" check box to enable automated uploads of your backups:

Image Modified

From the "Protocol" dropdown, select the "SFTP" option:

Image Modified

Info
titleAdvanced

Although out of scope for this documentation, there is an advanced uploading mechanism allowed for. By selecting "Local Copy" from the "Protocol" dropdown, FileFlex will perform simple a local filesystem copy of the backups. Consider the following:

Image Modified

It is possible for you to SSH in to the virtual machine and configure (for example) an NFS mount point to a remote server of your choice. This would allow you to schedule the "copy" of backup sets to your NFS destination. Any mountable target is possible (for example, Samba, etc).

Enter a server/host you wish to connect to. In this example, we're connecting a local network IP:

Image Modified

Select the login type you wish to use. The options are "SSH Key" and "Password". This tutorial assumes that you will be using an SSH Key.

Image Modified

Note

Using an SSH Key is more secure than using a password and is therefore the more desirable option.

Enter a username for your remote SSH connection:

Image Modified

Next, you will need to generate a public/private keypair. Click the "generate" button to do so:

Image Modified

Click the "view" link to show the public key contents:

Image Modified

Copy the key into your clipboard by clicking the copy button, and then close the dialog by clicking the close button.

Open a text editor, and paste the content of the key into it. Save the file somewhere in the file system of your current browser's operating system.

Info
titleUploading Your Public Key

In order to be allowed to upload into the remote SFTP server without a password being entered, you must upload your public key into that server. The specific instructions differ for varying destination server deployments, as well as for your current operating system. We assume you are using a desktop Linux (or Mac) system for this section of the documentation. If you are using windows, please adapt these instructions and use an application such as WinSCP.

For a typical Linux destination server, and assuming a user named "bkuser", the following steps will SCP the public key from the current host machine (containing your saved public key) to the remote machine using a password. From that point on, the public key will allow the backup process to upload remotely without a password. The example below assumes a remote host at 192.168.2.60, and a public key file named 'backup.pub'. Adjust your commands accordingly.

Run the following command, replacing the 'bkuser@192.168.2.60' with the appropriate user and IP for your backup destination.

Code Block
languagebash
awk 1 ~/backup.pub | ssh bkuser@192.168.2.60 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

Enter the password for the remote system when prompted. The remote system should now have your public key associated with the (example) bkuser account.

Enter a remote directory into which to place the backup files:

Image Modified

Click the test button to ensure everything is working. You should see a success message:

Image Modified

Click OK. Congratulations - when your backup task is executed your backups will be securely uploaded to the selected location using SFTP!


Sv translation
languageja_JP


Excerpt

このセクションでは、サーバー管理モジュール内で利用可能なバックアップと復元機能について説明しています。

バックアップと復元の概要

「バックアップと復元」タブをクリックすると、以下のパネルが表示されます。

Image Added

この画面は、以下の 2 つのカラムに分かれています。

  • 左側にはバックアップタスクとスケジュールを表示しています。
  • 右側には関連タスクに従って実行されたバックアップがすべて一覧表示されています。

バックアップタスクパネル

バックアップタスクパネルには、バックアップと復元アクションのツールバーとバックアップタスクの一覧が表示されています。

Image Added

利用可能なバックアップと復元のツールは以下のとおりに定義されています。


選択したバックアップタスクを編集します。例えば、日次バックアップを週次バックアップスケジュールに変更するために使用します。


新しいバックアップタスクを追加します。例えば、日次ベースでのファイルのバックアップを開始するために使用します。


選択したバックアップタスクを削除します。バックアップの実行を停止するために使用します。


管理者のローカルマシンからバックアップをアップロードします。ローカルで利用可能なデータを即時復元するために使用されます。


「手動」または「アップロード」行が選択されている場合に、即時バックアップを実行します。設定したバックアップタスクが選択されている場合は、直ちに関連のオフサイトバックアップを組み入れます。


バックアップリストを更新します。これが使用されるのは、パネルがすでに開いている間に発生したバックグラウンドのバックアップタスクが原因でリストが有効期限切れになった場合です。


バックアップと復元に関連したコンテキスト固有のヘルプを開きます。

以下のツールバーは、バックアップタスクのリストです。2 つのアイテムが恒久的に表示されます。

手動

手動でバックアップされた全データセットのリストです (例、即時バックアップ)

アップロード済み

手動でアップロードされた全データセットのリストです (例、管理者によるアップロード)

リストにある他のアイテム (例えば、上の例にある「日次」)は管理者が自動的に実行するように設定したバックアップタスクです。例えば、日次バックアップ、週次バックアップなどです。リストから行を選択すると、右側のバックアップタスクリスト内のフィルタ済みのリストが表示されます。

バックアップリスト

あらゆるバックアップタスクにはそれに関連した一連のバックアップファイルがあります (空白の可能性があります)。左側でバックアップタスクを選択すると、右側にフィルタ済みのバックアップのリストが表示されます。

Image Added

バックアップの各行には、日付、サイズ、バージョン、特定のバックアップで実行できる一連のアクションが表示されます。詳細については以下の表を参照してください。

バックアップカラム

意味

日付

22/03/17, 12:41:47

このバックアップは 2017 年 3 月 22 日、12 時 41 分 47 秒に実行されました。

サイズ

8.63 MB

このバックアップは 8.63 MB のスペースを占めます。

バージョン

0.0.153 / 7

バックアップした設定はバージョン 0.0.153 です。

バックアップしたデータはバージョン 7 です。

アクション

Image Added

バックアップの操作をダウンロード、復元、削除します。


Info
titleデータまたは設定をバックアップしますか?

設定とデータバックアップは、個別に処理されます。この理由は、クラスタ化された導入にアップグレードする際にデータのバックアップが希望される可能性があるからです。そのためには、まったく異なる設定が必要ですが、基盤になるデータは同じです。その状況で、データのみを復元します。

手動バックアップ

以下の 2 種類のバックアップが実行可能です。1 つ目の最も簡単なものは、手動バックアップで、以下に説明します。手動バックアップが直ちに実行され、そのデータは VM 内に保存されます。これはバックアップファイルの長期保存を希望する場合には向いていません。そのため、ローカルコピーをダウンロードして、バーチャル画像の外側の安全な場所に保存することを想定しています。

左側のバックアップタスクで「手動」エントリを選択します。

Image Added

今すぐバックアップアイコンをクリックして即時バックアップを開始します。しばらくすると、右側のリストに表示されます。

Image Added

これでバックアップは完了ですが、残念ながらこれは VM に保存されます。これは理想的ではありません。コピーをローカルデバイスにダウンロードして、選択した場所にバックアップする必要があります。

バックアップセットのバックアップツールImage Addedをクリックして、ダウンロードします。設定をダウンロードするのか、あるいはデータをダウンロードするのか求められます。

Image Added

設定を選択して、次に「OK」を選択すると、設定データがローカルマシンにダウンロードされます。この手順を繰り返して、代わりにデータをダウンロードします。これで、今後いつでも設定やデータを復元するために使用できる 2 つのアーカイブがローカルにできました。

バックアップからの復元

バックアップがあれば、それを復元できます。そのデータがすでにバックアップセットとしてお客様の VM にある場合、データを VM にアップロードしないで VM から直接復元できます。ただし、VM 以外のどこかに手動でデータをバックアップした場合は (上記に示すように)、まずアーカイブを VM にアップロードする必要があります。

VM へのバックアップのアップロード

左側のバックアップタスクからアップロードされた行を選択して、アップロードされたバックアップセットをすべて表示します。

Image Added

バックアップが右側に表示されていないことを確認します。本書では、バックアップは右側に表示されていないと仮定しています。バックアップツールバーからアップロードアクションImage Addedをクリックします。次に、ローカルマシンからファイルを選択するように求められます。

Image Added

設定かデータのバックアップのどちらをアップロードするかを選択できます。アップロードが自動的にどちらのタイプが提供されたかを検出します。ここでは、データバックアップセットを選択したと仮定しています。

Note

バックアップセットをアップロードすることが、それを復元することと同じではないことを理解することが重要です。それは単に仮想マシンにコピーされただけです。

アップロードが完了すると、右側のリストに表示されます。

Image Added

バックアップの復元

バックアップセットが VM 内に配置されると (左側のバックアップタスクリストからのいずれかのフィルタ内にある可能性があります)、そのバックアップセットを復元できます。

Note

バックアップセットには、設定情報かユーザーデータまたはその両方を含んでいる可能性があります。

データセットを復元する前に、アクティブなプロセスをシャットダウンする必要があります。左側の管理サーバーをクリックして、アクティブなサーバーを選択します。

Image Added

右側の管理ボタンをクリックして、サーバーの詳細を展開します。

Image Added

「Web サーバー」プロセスを選択し、次にトップメニューから停止アイコンを選択します。しばらくすると、いくつかのプロセスが停止されているという警告付きで一覧化されたサーバーが表示されます。

Image Added

Return to the backup and restore tab and select the "uploaded" backup task filter. Locate the backup set you wish to restore.

Image Added

バックアップセットを特定したら、復元アクション Image Added.をクリックします。設定を復元するか、データを復元するかを尋ねられます。データの入ったバックアップセットを選択すると仮定して、データオプションを選択します (また、復元を意図していると仮定しています)。

Image Added

「OK」をクリックしてから、しばらく待ちます。操作が完了すると、バックアップセットリストに戻ります。

おめでとうございます。バックアップから復元しました!

バックアップのスケジュール設定

自動バックアップのスケジュール設定は、バックアップ戦略の重要な構成要素です。FileFlex は、さまざまなスケジュールで自動バックアップするよう設定できますが、日次と週次の組み合わせのようなものを推奨します。

自動化バックアップタスクの作成

バックアップツールバーから新しいバックアップタスクボタンImage Addedをクリックしてタスクを開始します。スケジュール設定ダイアログボックスが表示されます。

Image Added

バックアップがこの特定のバックアップタスクに実行される際に、このダイアログボックスでコントロールします。

Info

任意の数の同時に設定された独立したバックアップタスクが存在する可能性があります。例えば、日次バックアップ、週次バックアップ、月初のバックアップが同時に存在する可能性があります。

バックアップタスクの名前を入力して開始します。

Image Added

バックアップセットにバックアップの開始時間 (グリニッジ標準時 - GMT で定義) を選択します。例えば、GMT の午前零時を選択します。

Image Added

Note

オプションで、時間選択の右のダイヤモンド形のコントロールを使用して分と時間を進めることができます。

次の手順で、バックアップの期間を選択します。

ワンタイムバックアップ

ワンタイムバックアップにより、特定の日の特定の時間に 1 回バックアップができます。

期間ドロップダウンから「1 回」を選択します。

Image Added

空白の日付フィールドと共にサマリーが表示されます。

Image Added

日付フィールドをクリックして、日付の選択を表示します。

Image Added

バックアップを実行する日付を選択します。

日次バックアップ

日次バックアップにより、毎日特定の時間にバックアップできるようになります。

期間ドロップダウンから「日次」を選択します。

Image Added

週次バックアップ

週次バックアップにより、週に 1 回、選択した曜日の特定の時間にバックアップできるようになります。

期間ドロップダウンから「週次」を選択します。

Image Added

バックアップを実行する曜日を選択します。

Image Added

月次バックアップ

月次バックアップにより、月に 1 回、特定の時間にバックアップできるようになります。

期間ドロップダウンから「月次」を選択します。

Image Added

バックアップを実行する日付 (月のうちの日付) を選択します。

Image Added

Note

月次バックアップスケジュールで選択できるのは 28 日までです。その月の 29 日、30 日、31 日は選択できません。

バックアップコピーの数

バックアップは仮想マシン内のスペースを消費するので、バックアップタスクのために保持しておくコピーの数を制限することが重要です。

Image Added

スライダーを左右にドラッグして、コピーの数を調整します。1 ~ 100 までの値が選択できます。

Info

コピーの数を期間に合った値に設定すると良いでしょう。例えば、日次バックアップタスクに 7 つのコピーを使用することを考慮し、週次バックアップタスクの 4 つのコピーと、月次バックアップタスクの 12 のコピーを組み合わせて、復元するための完全なバックアップの組み合わせを取得します。

設定が完了したら、「OK」をクリックしてそのバックアップスケジュールを確認します。バックアップタスクのリストに新しいエントリが表示されます。

Image Added

おめでとうございます。初めてのバックアップスケジュールの設定が完了しました。

オフサイトバックアップ

オフサイトバックアップはバックアップタスクの結果をリモートサーバーへアップロードするのを自動化するメカニズムです。オフサイトコピーを保管しておくと、安全に保管するために FileFlex 仮想マシンから外部サーバーにバックアップデータを抽出するのを自動化することができます。

Info

オフサイトバックアップは SFTP と連携しており、転送を確実に行うためにパブリック/プライベートキーに依存します。本チュートリアルを続行する前に、パブリックキーが有効になった SFTP アップロードターゲットがあることを確認してください。

バックアップタスク内でオフサイトバックアップを有効にするには、バックアップタスクダイアログの「アップロード」タブを選択します。

Image Added

次に「オフサイトバックアップ」チェックボックスをクリックして、バックアップの自動アップロードを有効にする必要があります。

Image Added

「プロトコル」ドロップダウンから、「SFTP」オプションを選択します。

Image Added

Info
title詳細

本マニュアルの範囲外となりますが、高度なアップロードメカニズムがあります。「プロトコル」ドロップダウンから「ローカルコピー」を選択することで、FileFlex は簡単なローカルファイルシステムのバックアップのコピーを実行します。以下のことを考慮してください。

Image Added

仮想マシンに SSH を入力し、選択したリモートサーバーに(例えば)NFS マウントポイントを構成することができます。これにより、NFS デスティネーションにバックアップセットの「コピー」をスケジュール設定できます。あらゆるマウント可能なターゲットが可能です(例えば、Samba 等)。

接続するサーバー/ホストを入力します。この例では、ローカルネットワーク IP に接続しています。

Image Added

使用するログインタイプを選択します。「SSH キー」と「パスワード」のオプションがあります。本チュートリアルでは SSH キーを使用していることを想定しています。

Image Added

Note

SSH キーを使用することは、パスワードを使用するよりも安全であるためお勧めします。

リモート SSH 接続に対してユーザー名を入力します。

Image Added

次に、パブリック/プライベートキーペアを生成する必要があります。その処理を行うには「生成」ボタンをクリックします。

Image Added

パブリックキーのコンテンツを表示するには、「表示」リンクをクリックします。

Image Added

コピーボタンをクリックしてキーをクリップボードにコピーし、閉じるボタンをクリックしてダイアログを閉じます。

テキストエディタを開き、キーのコンテンツを貼り付けます。現在のブラウザのオペレーティングシステムのファイルシステム内の任意の場所にファイルを保存します。

Info
titleパブリックキーのアップロード

パスワードを入力しないでリモート SFTP サーバーにアップロードできるようにするには、そのサーバーにパブリックキーをアップロードする必要があります。具体的な手順は、各種デスティネーションサーバー導入によって、また現在のオペレーティングシステムによって異なります。本マニュアルのこのセクションでは、デスクトップ Linux(または Mac)システムを使用しているものと想定します。Windowsを使用している場合は、これらの手順に従い、WinSCP などのアプリケーションを使用してください。

標準的な Linux デスティネーションサーバーについてユーザー名が「bkuser」であると仮定した場合、以下の手順によりパスワードを使用して現在のホストマシン(保存されたパブリックキーを含む)からリモートマシンにパブリックキーが SCP されます。この時点から、パブリックキーによりパスワードなしでリモートでアップロードするためのバックアッププロセスを実行することができます。以下の例では、リモートホストは 192.168.2.60、パブリックキーファイルの名前は「backup.pub」と想定しています。それに応じてコマンドを調整します。

次のコマンドを実行し、「bkuser@192.168.2.60」をバックアップ先の適切なユーザーと IP に置き換えます。

Code Block
languagebash
awk 1 ~/backup.pub | ssh bkuser@192.168.2.60 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

プロンプトが表示されたら、リモートシステムのパスワードを入力します。リモートシステムには、(例) bkuser アカウントに関連付けられたパブリックキーが存在するようになります。

バックアップファイルを配置するリモートディレクトリを入力します。

Image Added

テストボタンをクリックして、すべてが機能していることを確認します。成功メッセージが表示されます。

Image Added

OK をクリックします。おめでとうございます。バックアップタスクが実行されると、バックアップは SFTP を使用して選択した場所に安全にアップロードされます!