rightscale-cookbooks / rightscale_backup Goto Github PK
View Code? Open in Web Editor NEWResource to manage volume backups on any cloud RightScale supports
Home Page: http://community.opscode.com/cookbooks/rightscale_backup
License: Other
Resource to manage volume backups on any cloud RightScale supports
Home Page: http://community.opscode.com/cookbooks/rightscale_backup
License: Other
Have a 'device' attribute for rightscale_backup resource which specifies what device to back up. At this moment, we backup all devices by default due to issues with RightScale API Backup resource and the design of this cookbook.
Suppose I have 2 volumes - "volume1" and "volume2" attached to an instance at "/dev/xvdg" and "/dev/xvdf" respectively. Now I create a backup as follows
rightscale_backup "my_backup" do
lineage "test_lineage"
devices ["/dev/xvdg", "/dev/xvdh"]
action :create
end
The parameters to backup create API call are
params = {
: backup => {
:lineage => @new_resource.lineage, # will be "test_lineage"
:name => @new_resource.name, # will be "my_backup"
:volume_attachment_hrefs => hrefs # will be an array of hrefs of volumes attached at ["/dev/xvdg", "/dev/xvdh"]
}
}
After the backup is complete, I now end up with 2 snapshots both named "my_backup" in "test_lineage" lineage. When I restore this backup (containing 2 snapshots) I end up with 2 volumes attached to the instance with the same name "my_backup". Now, we cannot update the volume attributes in the node variable because the volumes have same name which causes a conflict.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.