准备bacula环境:
安装KVM
yum install kvm qemu libvir virt
查看网桥
[root@centos ~]# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.525400918901 yes virbr0-nic
安装虚机
使用virt-manager命令调出虚机管理台,进行虚机的安装。(这里虚机用RedHat6.2)
如果没有这个命令,使用yum安装
[root@centos ~]# virt-manager
配置虚机IP地址
IP地址应与前面的网桥在同一网段,网桥IP为虚机网关
[root@red ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
虚拟磁盘管理
# 虚拟磁盘默认存放路径
[root@centos lib]# cd /var/lib/libvirt/images/
[root@centos images]# ls
rhel6.2.qcow2
# 查看虚拟磁盘信息
[root@centos images]# qemu-img info rhel6.2.qcow2
image: rhel6.2.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 5.6G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: true
[root@centos images]#
# 扩容虚拟磁盘
[root@centos images]# qemu-img resize rhel6.2.qcow2 +1G
Image resized.
安装mysql
虚机管理台上挂载虚机的系统镜像,然后在虚机内挂载镜像到/mnt目录
mount /dev/cdrom /mnt
安装mysql软件包
官方说明,在不同平台下安装如下软件包即可:
mysql-<version>.rpm
mysql-server-<version>.rpm
mysql-devel-<version>.rpm
mysql-server-<version>.deb
mysql-client-<version>.deb
libmysqlclient15-dev-<version>.deb
libmysqlclient15off-<version>.deb
[root@red Packages]# yum -y install mysql mysql-server mysql-devel
安装完成,启动mysql
[root@red ~]# service mysqld start
Starting mysqld: [ OK ]
[root@red ~]#
bacula安装
下载bacula
下载地址
Bacula 7.4.0 source tar.gz
安装
==因为要编译安装,所以这里首先要安装GCC开发环境==
yum groupinstall "Development tools"
Server端开始编译安装
[root@red ~]# tar -xzvf bacula-7.4.0.tar.gz
[root@red bacula-7.4.0]# cd bacula-7.4.0
[root@red bacula-7.4.0]# ./configure --prefix=/opt/bacula --with-mysql=/usr/
[root@red bacula-7.4.0]# make
[root@red bacula-7.4.0]# make install
CFLAGS="-g -Wall" ./configure \
--sbindir=/opt/bacula/bin \
--sysconfdir=/opt/bacula/etc \
--enable-smartalloc \
--with-sqlite=$HOME/bacula/depkgs/sqlite--with-working-dir=/opt/bacula/working \
--with-pid-dir=/opt/bacula/working \
--with-subsys-dir=/opt/bacula/working \
--enable-bat \
--enable-readline
客户段编译安装client
[root@centos bacula-7.4.0]# tar -xzvf bacula-7.4.0.tar.gz
[root@centos bacula-7.4.0]# cd bacula-7.4.0/
[root@centos bacula-7.4.0]# ./configure --prefix=/opt/bacula --enable-client-only
[root@centos bacula-7.4.0]# make
[root@centos bacula-7.4.0]# make install
初始化数据库
Server端
[root@red etc]# cd /opt/bacula/etc
[root@red etc]# ./grant_mysql_privileges
[root@red etc]# ./create_mysql_database
Creation of bacula database succeeded.
[root@red etc]#
[root@red etc]# ./make_mysql_tables
Creation of Bacula MySQL tables succeeded.
[root@red etc]#
登陆mysql数据库,查看bacula数据库
[root@red etc]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.1.52 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| bacula |
| mysql |
| test |
+--------------------+
4 rows in set (0.00 sec)
mysql>
mysql> use bacula
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+------------------+
| Tables_in_bacula |
+------------------+
| BaseFiles |
| CDImages |
| Client |
| Counters |
| Device |
| File |
| FileSet |
| Filename |
| Job |
| JobHisto |
| JobMedia |
| Location |
| LocationLog |
| Log |
| Media |
| MediaType |
| Path |
| PathHierarchy |
| PathVisibility |
| Pool |
| RestoreObject |
| Snapshot |
| Status |
| Storage |
| UnsavedFiles |
| Version |
+------------------+
26 rows in set (0.00 sec)
mysql>
配置bacula备份系统
配置Console
[root@red etc]# vi bconsole.conf
Director {
Name = red-dir
DIRport = 9101
address = 192.168.122.10
Password = "x/M8sWoNCZbTAsDnbW1p7S3aKULDmD5VZ5zwbkC70/sr"
}
配置director
示例
Director { # define myself
Name = red-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/opt/bacula/etc/query.sql"
WorkingDirectory = "/opt/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = "x/M8sWoNCZbTAsDnbW1p7S3aKULDmD5VZ5zwbkC70/sr" # Console password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = red-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = red-sd
Messages = Standard
Pool = File
SpoolAttributes = yes
Priority = 10
Write Bootstrap = "/opt/bacula/working/%c.bsr"
}
Job {
Name = "red-Incr"
JobDefs = "DefaultJob"
}
Job {
Name = "red-full"
Level = Full
JobDefs = "DefaultJob"
}
Job {
Name = "red-Diff"
Level = Differential
JobDefs = "DefaultJob"
}
# 2cd client
Job {
Name = "centos-full"
Client = centos-fd
Level = Full
JobDefs = "DefaultJob"
}
Job {
Name = "centos-Incr"
Client = centos-fd
Level = Incremental
JobDefs = "DefaultJob"
}
Job {
Name = "centos-Diff"
Client = centos-fd
Level = Differential
JobDefs = "DefaultJob"
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# Arguments to make_catalog_backup.pl are:
# make_catalog_backup.pl <catalog-name>
RunBeforeJob = "/opt/bacula/etc/make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
RunAfterJob = "/opt/bacula/etc/delete_catalog_backup"
Write Bootstrap = "/opt/bacula/working/%n.bsr"
Priority = 11 # run after main backup
}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
Name = "RestoreFiles"
Type = Restore
Client=red-fd
FileSet="Full Set"
Storage = red-sd
Pool = File
Messages = Standard
Where = /tmp/bacula-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /opt/bacula/sbin
}
Exclude {
File = /opt/bacula/working
File = /tmp
File = /proc
File = /tmp
File = /sys
File = /.journal
File = /.fsck
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/opt/bacula/working/bacula.sql"
}
}
# Client (File Services) to backup
Client {
Name = red-fd
Address = 192.168.122.10
FDPort = 9102
Catalog = MyCatalog
Password = "1iUw/ByLzQ6CGFKXkdXrbRSePmVJDCLDyiL3IRMHSKmJ" # password for FileDaemon
File Retention = 60 days # 60 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = centos-fd
Address = 192.168.122.1
FDPort = 9102
Catalog = MyCatalog
Password = "1iUw/ByLzQ6CGFKXkdXrbRSePmVJDCLDyiL3IRMHSKmJ2" # password for FileDaemon 2
File Retention = 60 days # 60 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definition of file Virtual Autochanger device
Storage {
Name = red-sd
Address = 192.168.122.10 # N.B. Use a fully qualified name here
SDPort = 9103
Password = "iPV5zhExttUFJPAZ+nduzOtR+NP1TmsrYND2MJXBNBte"
Device = FileChgr1
Media Type = File1
Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
mailcommand = "/opt/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/opt/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/opt/bacula/log/bacula.log" = all, !skipped
catalog = all
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/opt/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/opt/bacula/log/bacula.log" = all, !skipped
}
# Default pool definition
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50M # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = red-mon
Password = "jO3LEr9hPdKQ1plmtwljBiX9nnOWyuA3FlGMuxcoXCeo"
CommandACL = status, .status
}
配置bacula-sd.conf
示例*
Storage { # definition of myself
Name = red-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = red-dir
Password = "iPV5zhExttUFJPAZ+nduzOtR+NP1TmsrYND2MJXBNBte"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = red-mon
Password = "T6BvVM250dflhfIjfvOiPBt7BNXaeBmrCgXVu53J75jm"
Monitor = yes
}
#
# Note, for a list of additional Device templates please
# see the directory <bacula-source>/examples/devices
# Or follow the following link:
# http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
#
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
#
# Define a Virtual autochanger
#
Autochanger {
Name = FileChgr1
Device = FileChgr1-Dev1, FileChgr1-Dev2
Changer Command = ""
Changer Device = /dev/null
}
Device {
Name = FileChgr1-Dev1
Media Type = File1
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
Device {
Name = FileChgr1-Dev2
Media Type = File1
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
#
# Define a second Virtual autochanger
#
Autochanger {
Name = FileChgr2
Device = FileChgr2-Dev1, FileChgr2-Dev2
Changer Command = ""
Changer Device = /dev/null
}
Device {
Name = FileChgr2-Dev1
Media Type = File2
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
Device {
Name = FileChgr2-Dev2
Media Type = File2
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
#
# An autochanger device with two drives
#
#Autochanger {
# Name = Autochanger
# Device = Drive-1
# Device = Drive-2
# Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
# Changer Device = /dev/sg0
#}
#Device {
# Name = Drive-1 #
# Drive Index = 0
# Media Type = DLT-8000
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# #
# # Enable the Alert command only if you have the mtx package loaded
# # Note, apparently on some systems, tapeinfo resets the SCSI controller
# # thus if you turn this on, make sure it does not reset your SCSI
# # controller. I have never had any problems, and smartctl does
# # not seem to cause such problems.
# #
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#Device {
# Name = Drive-2 #
# Drive Index = 1
# Media Type = DLT-8000
# Archive Device = /dev/nst1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-2 tape drive
#
#Device {
# Name = LTO-2
# Media Type = LTO-2
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 3GB
## Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-3 tape drive
#
#Device {
# Name = LTO-3
# Media Type = LTO-3
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 4GB
## Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-4 tape drive
#
#Device {
# Name = LTO-4
# Media Type = LTO-4
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 5GB
## Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# An HP-UX tape drive
#
#Device {
# Name = Drive-1 #
# Drive Index = 0
# Media Type = DLT-8000
# Archive Device = /dev/rmt/1mnb
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = no
# Two EOF = yes
# Hardware End of Medium = no
# Fast Forward Space File = no
# #
# # Enable the Alert command only if you have the mtx package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A FreeBSD tape drive
#
#Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
# Media Type = DDS-4
# Archive Device = /dev/nsa1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
# Hardware End of Medium = no
# BSF at EOM = yes
# Backward Space Record = no
# Fast Forward Space File = no
# TWO EOF = yes
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = red-dir = all
}
备份测试
[root@red etc]# /opt/bacula/sbin/bconsole
Connecting to Director 192.168.122.10:9101
1000 OK: 102 red-dir Version: 7.4.0 (16 January 2016)
Enter a period to cancel a command.
*list volume
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
No results to list.
Pool: File
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | ExpiresIn |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
| 1 | Vol-0001 | Append | 1 | 582 | 0 | 31,536,000 | 1 | 0 | 0 | File1 | 2016-05-11 11:12:09 | 31,532,851 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
Pool: Scratch
No results to list.
*run
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
1: red-Incr
2: red-full
3: red-Diff
4: centos-full
5: centos-Incr
6: centos-Diff
7: BackupCatalog
8: RestoreFiles
Select Job resource (1-8): 2
Run Backup job
JobName: red-full
Level: Full
Client: red-fd
FileSet: Full Set
Pool: File (From Job resource)
Storage: red-sd (From Job resource)
When: 2016-05-11 12:04:51
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=2
*status
Status available for:
1: Director
2: Storage
3: Client
4: Scheduled
5: All
Select daemon type for status (1-5): 1
red-dir Version: 7.4.0 (16 January 2016) x86_64-unknown-linux-gnu redhat Enterprise release
Daemon started 11- 5��2016 12:03, conf reloaded 11- 5月-2016 12:03:32
Jobs: run=1, running=0 mode=0
Heap: heap=262,144 smbytes=92,694 max_bytes=101,456 bufs=293 max_bufs=324
Scheduled Jobs:
Level Type Pri Scheduled Job Name Volume
===================================================================================
Incremental Backup 10 11- 5��2016 23:05 red-Incr Vol-0001
Incremental Backup 10 11- 5��2016 23:05 red-full Vol-0001
Incremental Backup 10 11- 5��2016 23:05 red-Diff Vol-0001
Incremental Backup 10 11- 5��2016 23:05 centos-full Vol-0001
Incremental Backup 10 11- 5��2016 23:05 centos-Incr Vol-0001
Incremental Backup 10 11- 5��2016 23:05 centos-Diff Vol-0001
Full Backup 11 11- 5��2016 23:10 BackupCatalog Vol-0001
====
Running Jobs:
Console connected at 11- 5��2016 12:04
No Jobs running.
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
====================================================================
1 Full 0 0 Error 11- 5��2016 08:59 BackupClient2
2 Full 1 30.79 K OK 11- 5��2016 09:00 BackupCatalog
1 Full 0 0 OK 11- 5��2016 11:12 BackupClient1
2 Full 16 13.86 M OK 11- 5��2016 12:04 red-full
====
You have messages.
*
11- 5月 12:04 red-dir JobId 2: Start Backup JobId 2, Job=red-full.2016-05-11_12.04.54_03
11- 5月 12:04 red-dir JobId 2: Using Device "FileChgr1-Dev1" to write.
11- 5月 12:04 red-sd JobId 2: Volume "Vol-0001" previously written, moving to end of data.
11- 5月 12:04 red-sd JobId 2: Ready to append to end of Volume "Vol-0001" size=582
11- 5月 12:04 red-sd JobId 2: Elapsed time=00:00:01, Transfer rate=13.86 M Bytes/second
11- 5月 12:04 red-sd JobId 2: Sending spooled attrs to the Director. Despooling 4,237 bytes ...
11- 5月 12:04 red-dir JobId 2: Bacula red-dir 7.4.0 (16Jan16):
Build OS: x86_64-unknown-linux-gnu redhat Enterprise release
JobId: 2
Job: red-full.2016-05-11_12.04.54_03
Backup Level: Full
Client: "red-fd" 7.4.0 (16Jan16) x86_64-unknown-linux-gnu,redhat,Enterprise release
FileSet: "Full Set" 2016-05-11 12:04:54
Pool: "File" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "red-sd" (From Job resource)
Scheduled time: 11- 5月-2016 12:04:51
Start time: 11- 5月-2016 12:04:56
End time: 11- 5月-2016 12:04:56
Elapsed time: 0 secs
Priority: 10
FD Files Written: 16
SD Files Written: 16
FD Bytes Written: 13,861,476 (13.86 MB)
SD Bytes Written: 13,863,171 (13.86 MB)
Rate: 0.0 KB/s
Software Compression: None
Snapshot/VSS: no
Encryption: no
Accurate: no
Volume name(s): Vol-0001
Volume Session Id: 1
Volume Session Time: 1462939412
Last Volume Bytes: 13,874,879 (13.87 MB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK
11- 5月 12:04 red-dir JobId 2: Begin pruning Jobs older than 6 months .
11- 5月 12:04 red-dir JobId 2: No Jobs found to prune.
11- 5月 12:04 red-dir JobId 2: Begin pruning Files.
11- 5月 12:04 red-dir JobId 2: No Files found to prune.
11- 5月 12:04 red-dir JobId 2: End auto prune.
*list volumes
Pool: Default
No results to list.
Pool: File
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | ExpiresIn |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
| 1 | Vol-0001 | Append | 1 | 13,874,879 | 0 | 31,536,000 | 1 | 0 | 0 | File1 | 2016-05-11 12:04:56 | 31,535,758 |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+------------+
Pool: Scratch
No results to list.
*