
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Wrapper for lvm, to use lvm snapshot.
Add this line to your application's Gemfile:
gem 'takuya-lvm-snapshot'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install takuya-lvm-snapshot
Add Following line into Gemfile.
gem 'takuya-lvm-snapshot', git: 'https://github.com/takuya/ruby-lvm-snapshot-wrapper.git'
create / list / delete lvm snapshot
require "takuya/lvm_snapshot"
LvmSnapShot = Takuya::LvmSnapShot
lvsnap = LvmSnapShot.new('vg_name')
lvsnap.create('snap_01')
lvsnap.exists('snap_01')
lvsnap.mount('snap_01','/mnt')
lvsnap.unmount('snap_01','/mnt')
lvsnap.remove('snap_01')
This package make easy to Take Snapshot and backup.
require "takuya/lvm_snapshot"
LvmSnapShot = Takuya::LvmSnapShot
LvmSnapShot.new('vg0').enter_snapshot{|mnt|
## backup from snapshot
FileUtils.cp_r('/mnt/var/lib/mysql', '/nfs/backup/mysql')
}
Make use of LVM Snap Shot allows us to Backup without stopping services.
require "takuya/lvm_snapshot"
LvmSnapShot = Takuya::LvmSnapShot
LvmSnapShot.new('vg0','lv0','/mnt').enter_snapshot{|mnt|
## backup from snapshot
src="#{mnt}/var/lib/libvirt/images/my-vm.qcow2"
cmd="rsync -a '#{src}' myserver:~/my-backup "
`#{cmd}`
}
After checking out the repo, run bin/setup
to install dependencies. Then, run rake
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/takuya/ruby-lvm-snapshot-wrapper/.
FAQs
Unknown package
We found that takuya-lvm-snapshot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.