Project

tens3

0.0
No commit activity in last 3 years
No release in over 3 years
easy backups to s3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme
tens3 : dead simple s3 backups

* uses s3 to backup a directory of files
* uses fadvise to be easy on filesystem caches and disks
* purges files after X days
* streams files rather than loading them entirely into memory


license:

This code is available as Open Source Software under the MIT license.


ruby dependencies:

fadvise
right_aws


configuration:

tens3.yml:

amazon_access_key_id: "someid"
amazon_secret_access_key: "somekey"
backup_dir: "/some/path/"
purge_threshold: 3
bucket_name: "somebucket"


usage:

backup a directory of files:

$ ./tens3_put tens3.conf

restore a file from a backup:

$ ./tens3_get tens3.conf date somefile ./somefile

The date is the date that the file was backed up in a YYYYMMDD format.


caveats:

The script will only backup files at one directory level, it does not recurse into subdirectories.