Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461548
file_set.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 1:48 AM
Size
975 B
Mime Type
text/x-ruby
Expires
Tue, May 20, 1:48 AM (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
220328
Attached To
rARCHIVING archiving
file_set.rb
View Options
# Bacula FileSet table.
#
# The FileSet table contains one entry for each FileSet that is used.
# The MD5 signature is kept to ensure that if the user changes anything inside the FileSet,
# it will be detected and the new FileSet will be used.
# This is particularly important when doing an incremental update.
# If the user deletes a file or adds a file, we need to ensure that a Full backup is done
# prior to the next incremental.
class
FileSet
<
ActiveRecord
::
Base
establish_connection
BACULA_CONF
self
.
table_name
=
"
#{
connection_config
[
:database
]
}
.FileSet"
self
.
primary_key
=
:FileSetId
alias_attribute
:file_set_id
,
:FileSetId
alias_attribute
:file_set
,
:FileSet
alias_attribute
:md5
,
:MD5
alias_attribute
:create_time
,
:CreateTime
has_many
:jobs
,
foreign_key
:
:FileSetId
# Handles the returned attribues for api
#
# @return [Hash] of the desired attributes for api use
def
api_json
{
id
:
id
,
name
:
file_set
}
end
end
Event Timeline
Log In to Comment