var search_data = {"index":{"searchIndex":["selbackup","bucket()","check_daily()","check_monthly()","check_weekly()","connection()","daily_good?()","delete_file()","directory()","files()","gen_daily_file()","gen_monthly_file()","gen_weekly_file()","give_me_files()","give_me_latest_file()","give_me_recent_file()","monthly_good?()","new()","push_file()","should_monthly?()","should_weekly?()","upload_file()","weekly_good?()","gemfile","license","rakefile"],"longSearchIndex":["selbackup","selbackup#bucket()","selbackup#check_daily()","selbackup#check_monthly()","selbackup#check_weekly()","selbackup#connection()","selbackup#daily_good?()","selbackup#delete_file()","selbackup#directory()","selbackup#files()","selbackup#gen_daily_file()","selbackup#gen_monthly_file()","selbackup#gen_weekly_file()","selbackup#give_me_files()","selbackup#give_me_latest_file()","selbackup#give_me_recent_file()","selbackup#monthly_good?()","selbackup::new()","selbackup#push_file()","selbackup#should_monthly?()","selbackup#should_weekly?()","selbackup#upload_file()","selbackup#weekly_good?()","","",""],"info":[["SelBackup","","classes/SelBackup.html","","
SelBackup Class\n
Enables connection to s3 server and uploads files\n"],["bucket","SelBackup","classes/SelBackup.html#method-i-bucket","()","
Public: Returns the S3 bucket.\n
Returns a Fog::Storage::AWS::Directory instance.\n"],["check_daily","SelBackup","classes/SelBackup.html#method-i-check_daily","(filename, nb_day)","
Public: daily check algorythm\n
filename — String which contains a filename. If you upload '2013-01-01-file.tgz …\n\n"],["check_monthly","SelBackup","classes/SelBackup.html#method-i-check_monthly","(filename, nb_month)","
Public: montlhy check algorythm\n
filename — String which contains a filename. If you upload '2013-01-01-file.tgz …\n\n"],["check_weekly","SelBackup","classes/SelBackup.html#method-i-check_weekly","(filename, nb_week)","
Public: weekly check algorythm\n
filename — String which contains a filename. If you upload '2013-01-01-file.tgz …\n\n"],["connection","SelBackup","classes/SelBackup.html#method-i-connection","()","
Public: Returns the S3 connection.\n
Returns a Fog::Storage::AWS::Real instance.\n"],["daily_good?","SelBackup","classes/SelBackup.html#method-i-daily_good-3F","(directoryFiles, nb_day)","
Public: Check daily files number\n
directoryFiles — Array of daily files\n\n\n
['file/2013-01-01-daily-file.tgz', ...\n"],["delete_file","SelBackup","classes/SelBackup.html#method-i-delete_file","(file)","
Public: deletes a file\n
file — Fog::Storage::AWS::Files file\n\n
returns nothing\n"],["directory","SelBackup","classes/SelBackup.html#method-i-directory","(path)","
Public: Returns a virtual S3 directory.\n
S3 doesn't know such a thing as a directory but it is possible …\n"],["files","SelBackup","classes/SelBackup.html#method-i-files","()","
Public: Returns the list of files.\n
Returns a Fog::Storage::AWS::Files instances.\n"],["gen_daily_file","SelBackup","classes/SelBackup.html#method-i-gen_daily_file","(file)","
Public: gen a daily file\n
file — file you want to upload\n\n
Returns an hash containing the filename, the key …\n"],["gen_monthly_file","SelBackup","classes/SelBackup.html#method-i-gen_monthly_file","(file)","
Public: gen a monthly file\n
file — hash containing the key and the body of the weekly file you want to push …\n\n"],["gen_weekly_file","SelBackup","classes/SelBackup.html#method-i-gen_weekly_file","(file)","
Public: gen a weekly file\n
file — hash containing the key and the body of the daily file you want to push …\n\n"],["give_me_files","SelBackup","classes/SelBackup.html#method-i-give_me_files","(filename, type)","
Public: returns lists of file\n
filename: “file.tgz” for example\n
type: specify if you want daily, …\n"],["give_me_latest_file","SelBackup","classes/SelBackup.html#method-i-give_me_latest_file","(files)","
Public: returns latest file\n
files: array of AWS object file\n
Returns the latest file, based on the date …\n"],["give_me_recent_file","SelBackup","classes/SelBackup.html#method-i-give_me_recent_file","(files)","
Public: returns most recent file\n
files: array of AWS object file\n
Returns the most recent file, based on …\n"],["monthly_good?","SelBackup","classes/SelBackup.html#method-i-monthly_good-3F","(files, nb_month)","
Public: Check monthly files number\n
files — Array of monthly files\n\n\n
['file/2013-01-01-monthly-file.tgz', 'file/2013-01-02-monthly-file.tgz', ...\n"],["new","SelBackup","classes/SelBackup.html#method-c-new","(key, secret, bucket, region = 'eu-west-1')","
Public: Initialize a new SelBackup instance.\n
key — A String representing the AWS ACCESS KEY ID.\n
secret — A …\n"],["push_file","SelBackup","classes/SelBackup.html#method-i-push_file","(file)","
Public: pushes a file to s3 server\n
file — hash containing the key and the body of the file you want to upload …\n\n"],["should_monthly?","SelBackup","classes/SelBackup.html#method-i-should_monthly-3F","(file1, file2)","
Public: date diff\n
file1 — latest weekly file\n
file2 — most recent monthly file\n"],["should_weekly?","SelBackup","classes/SelBackup.html#method-i-should_weekly-3F","(file1, file2)","
Public: date diff\n
file1 — latest daily file\n
file2 — most recent weekly file\n"],["upload_file","SelBackup","classes/SelBackup.html#method-i-upload_file","(file, nb_day = 7, nb_week = 4, nb_month = 3)","
Public: upload file algorythm\n
file — file you want to upload\n\n
Uploads file as daily file and check daily, …\n"],["weekly_good?","SelBackup","classes/SelBackup.html#method-i-weekly_good-3F","(directoryFiles, nb_week)","
Public: Check weekly files number\n
files — Array of daily files\n\n\n
['file/2013-01-01-weekly-file.tgz', 'file/013-01-02-weekly-2file.tgz', ...\n"],["Gemfile","","files/Gemfile.html","","
source 'rubygems.org'\n
gem 'active_support' gem 'fog' gem 'i18n' gem\n'rake' …\n"],["LICENSE","","files/LICENSE.html","","\n
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n
Copyright (C) 2004 Sam Hocevar …\n"],["Rakefile","","files/Rakefile.html","","
require 'rspec/core/rake_task' require './lib/selbackup.rb'\n
RSpec::Core::RakeTask.new …\n"]]}}