began changes
This commit is contained in:
parent
f433321fb8
commit
1d546c93b1
22
bucket-tool
22
bucket-tool
@ -14,15 +14,16 @@ Description:
|
|||||||
search the filebucket and restore from it.
|
search the filebucket and restore from it.
|
||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
search <term> : Search for bucket entries matching a portion of the filepath
|
search <term> : Search for bucket entries matching a portion of the filepath
|
||||||
list : List all Bucket entries
|
list : List all Bucket entries
|
||||||
list-files : List all files/paths that have been backed up to the bucket
|
list-files : List all files/paths that have been backed up to the bucket
|
||||||
get <entry-hash> : Get the content of a specific entry (by hash)
|
get <entry-hash> : Get the content of a specific entry (by hash)
|
||||||
restore <entry-hash> : Restore previous state of file stored in bucket (by-hash)
|
restore-hash <entry-hash> : Restore previous state of file stored in bucket (by-hash)
|
||||||
|
restore-file <filepath> : Restore previous state of file stored in bucket (by-filepath/filename)
|
||||||
|
|
||||||
Global Flags:
|
Global Flags:
|
||||||
-d | --debug : Set debug flag
|
-d | --debug : Set debug flag
|
||||||
-h | --help : This help message
|
-h | --help : This help message
|
||||||
|
|
||||||
Author:
|
Author:
|
||||||
Name: Tristan Ancelet
|
Name: Tristan Ancelet
|
||||||
@ -243,12 +244,7 @@ end
|
|||||||
|
|
||||||
def search_entries_paths (bucket)
|
def search_entries_paths (bucket)
|
||||||
log "user entered"
|
log "user entered"
|
||||||
bucket.entries.each_value do |entry|
|
puts bucket.entries.each_value.select {|entry| entry.path_include? $CONFIG[:search_term]}.map{|entry| entry.inline_info}.sort.join("\n")
|
||||||
log "checking Entry[#{entry.hash}]"
|
|
||||||
if entry.path_include? $CONFIG[:search_term]
|
|
||||||
puts entry.inline_info
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_content_of_entry_hash (bucket)
|
def get_content_of_entry_hash (bucket)
|
||||||
|
Loading…
Reference in New Issue
Block a user