単体リカバリポイントのスケジュールバックアップを作成しました
Scheduling a backup of Independent recovery point with SSR 2013 Linux Edition
http://www.rootlinks.net/2014/03/21/scheduling-a-backup-of-independent-recovery-point-with-ssr-2013-linux-edition/
スケジュールジョブはコマンドで作成、実行、確認、削除は出来ますが修正ができません。従ってジョブを変更する場合は削除して作成になります
スケジュールジョブに関するオプションを抜き出してみました
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
Name: symsr Description: Back up or restore a computer. Synopsis: symsr [ACTION]... [OPTION]... -createjob Lets you schedule a backup job for a specific device. -info <job | disk> Shows information about the existing backup jobs, or the partitions and file system types that are available on the disk. <job> Lists all the scheduled jobs and their status. The status of a backup job is either active or in progress. Active status indicates that the scheduled job is active for the given recovery point type. In progress status indicates that the backup job is running on the device, after the job completes, the status changes back to active. <disk> Lists the partitions and file system types that are available on the disk. -rmjob <job id> Removes an existing backup job from the info job list. -runjob <job id> Runs an existing backup job immediately, irrespective of the backup job schedule. |
- スケジュールジョブの作成
- スケジュールジョブの確認
- スケジュールジョブの即時実行
- スケジュールジョブの削除
カンマ(,)で区切って複数のバックアップ元の指定もできます
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
[root@co65 ~]# symsr -createjob Warning: Application license will expire on Mon May 19 16:58:27 2014. SELECT SOURCE Specify the devices that need to be backed up :/dev/sda1,/dev/mapper/vg_co65-lv_root,/dev/mapper/vg_co65-lv_home SELECT DESTINATION Specify the path where you want to store the recovery points :/backup/bk_test/ Create a computer specific folder in the destination path [y/n] [n]: y SELECT RECOVERY POINT TYPE [1]Recovery point set: Creates a base recovery point and subsequent incremental recovery points. [2]Independent backup: Creates a complete standalone backup. Select the recovery point type [1/2] [1]: 2 SELECT COMPRESSION LEVEL Use [1] Standard, [2] Medium, [3] High, [4] No compression for the recovery points. Select compression level [1/2/3/4] [1]: 1 SELECT ENCRYPTION TYPE Encrypt recovery point data using password to add another level of protection to your recovery points. [1] No password and no encryption [2] Password protected without any encryption. [3] Standard 128-bit (8+ character password). [4] Medium 192-bit (16+ character password). [5] High 256-bit (32+ character password). Select encryption type [1/2/3/4/5] [1]: 1 SPECIFY INDEPENDENT RECOVERY POINT SCHEDULE Create a schedule to run independent backup at regular intervals. [1] Weekly, [2] Monthly, [3] Quarterly, [4] Yearly, [5] Run only once. Enter schedule choice. [1/2/3/4/5] [1]: 1 Recur every week on [SUNDAY,MONDAY...] or [1,2,...7] [SUNDAY]: 7 Specify backup start time [HH:MM] [17:30] :17:30 Verify recovery point after creation (this will increase the backup time) [y/n] [n]: n You have selected the following options SOURCE DEVICE NAMES /dev/sda1 /dev/dm-0 /dev/dm-2 DESTINATION FOLDER /backup/bk_test/ RECOVERY POINT TYPE Independent Backup BACKUP SCHEDULE At 17:30 every Saturday Next Run on 22-Mar-2014 COMPRESSION LEVEL Standard Compression ENCRYPTION TYPE AND PASSWORD No Password Save Job [y/n] [y]:y Provide Job Name : full_backup Job information saved. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[root@co65 ~]# symsr -info job Warning: Application license will expire on Mon May 19 16:58:27 2014. Name : sda1_backup Guid : aa90fc56-2991-e211-abbf-aabb10580c8d JobID : job-1 Status : Active Volume : /dev/sda1 Job Schedule : Create independent full recovery point every Friday Job Added : 21-Mar-14 16:13 Destination : /backup/bk_test/ Last Backup : 21-Mar-14 16:15 Last Result : SUCCESS Next Backup : 28-Mar-14 16:15 Next BackupType: Independendent Full Name : full_backup Guid : 46af983d-3791-e211-b054-44d04796ec83 JobID : job-2 Status : Active Volume : /dev/sda1 /dev/dm-0 /dev/dm-2 Job Schedule : Create independent full recovery point every Saturday Job Added : 21-Mar-14 17:24 Destination : /backup/bk_test/ Last Backup : Not Available Last Result : Not Available Next Backup : 22-Mar-14 17:30 Next BackupType: Independendent Full |
テスト等で実行日時まで待てない場合などで登録されているジョブを実行することができます
1 2 3 4 5 6 7 8 9 10 11 |
[root@co65 ~]# symsr -runjob job-1 Warning: Application license will expire on Mon May 19 16:58:27 2014. Analyzing the storage management stack Creating volume snapshots Copying volume data Closing recovery point 100% [==============================================================] Finished [root@co65 ~]# ls -l /backup/bk_test/co65.rootlinks.net/ total 136110 -rw-r--r-- 1 root root 67607893 Mar 21 16:14 co65.rootlinks.net_boot_000.v2i -rw-r--r-- 1 root root 72449096 Mar 21 17:41 co65.rootlinks.net_boot_001.v2i |
ジョブID:job-2のスケジュールジョブを削除してみます。確認画面も出なくていきなり削除されるので注意です
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@co65 ~]# symsr -rmjob job-2 Warning: Application license will expire on Mon May 19 16:58:27 2014. [root@co65 ~]# symsr -info job Warning: Application license will expire on Mon May 19 16:58:27 2014. Name : sda1_backup Guid : aa90fc56-2991-e211-abbf-aabb10580c8d JobID : job-1 Status : Active Volume : /dev/sda1 Job Schedule : Create independent full recovery point every Friday Job Added : 21-Mar-14 16:13 Destination : /backup/bk_test/ Last Backup : 21-Mar-14 17:42 Last Result : SUCCESS Next Backup : 28-Mar-14 16:15 Next BackupType: Independendent Full |