Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from joergsteffens/dev/joergs/master/python
python-bareos and dird commands improvments
- Loading branch information
Showing
52 changed files
with
1,358 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,46 @@ | ||
SELECT MediaId,VolumeName,Slot,PoolId, | ||
MediaType,FirstWritten,LastWritten,LabelDate,VolJobs, | ||
VolFiles,VolBlocks,VolMounts,VolBytes,VolErrors,VolWrites, | ||
VolCapacityBytes,VolStatus,Enabled,Recycle,VolRetention, | ||
VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,InChanger, | ||
EndFile,EndBlock,LabelType,StorageId,DeviceId, | ||
LocationId,RecycleCount,InitialWrite,ScratchPoolId,RecyclePoolId, | ||
Comment,Name AS Storage | ||
# | ||
# List all volumes. | ||
# Pool in column [4] is important for ACL checking. | ||
# | ||
SELECT Media.MediaId, | ||
Media.VolumeName, | ||
Media.Slot, | ||
Media.PoolId, | ||
(SELECT Name FROM Pool WHERE Pool.PoolId=Media.PoolId) AS Pool, | ||
Media.MediaType, | ||
Media.FirstWritten, | ||
Media.LastWritten, | ||
Media.LabelDate, | ||
Media.VolJobs, | ||
Media.VolFiles, | ||
Media.VolBlocks, | ||
Media.VolMounts, | ||
Media.VolBytes, | ||
Media.VolErrors, | ||
Media.VolWrites, | ||
Media.VolCapacityBytes, | ||
Media.VolStatus, | ||
Media.Enabled, | ||
Media.Recycle, | ||
Media.VolRetention, | ||
Media.VolUseDuration, | ||
Media.MaxVolJobs, | ||
Media.MaxVolFiles, | ||
Media.MaxVolBytes, | ||
Media.InChanger, | ||
Media.EndFile, | ||
Media.EndBlock, | ||
Media.LabelType, | ||
Media.StorageId, | ||
Media.DeviceId, | ||
Media.LocationId, | ||
Media.RecycleCount, | ||
Media.InitialWrite, | ||
Media.ScratchPoolId, | ||
(SELECT Name FROM Pool WHERE Pool.PoolId=Media.ScratchPoolId) AS ScratchPool, | ||
Media.RecyclePoolId, | ||
(SELECT Name FROM Pool WHERE Pool.PoolId=Media.RecyclePoolId) AS RecyclePool, | ||
Media.Comment, | ||
Storage.Name AS Storage | ||
FROM Media | ||
LEFT JOIN Storage USING(StorageId) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.