Bash script for managing btrfs filesystem (local and remote):
- Perform scrubs
- Creating snapshots (with auto delete for no empty space)
- Send snapshots (with auto delete for no empty space)
- List snapshot
- Delete snapshot (with auto delete).
- Delete old snapshots.
- Mount snapshot
- Simulate the action.
- Simple to use and verify proper operation.
- Designed to be run from the shell or from the crontab.
- No setup, just copy btrfsManage.
- The subvolume on which to perform the snapshot is detected by the subvolume currently mounted.
- The subvolume necessary to btrfsManage are created and mounted automatically.

Features

  • Usage: btrfsManage [OPTION:...,...] ' actionType ' ...
  • btrfsManage [OPTION:nomake] SCRUB [root@exnet.gdb.it:]/dev/sda1
  • btrfsManage [OPTION:autoopt[,nomake]] SNAPSHOT /|/dev/sdb1:root
  • btrfsManage [OPTION:autoopt[,nomake]] SEND /|/dev/sdb1:root [root@exnet.gdb.it:]/dev/sda3 [pc1]
  • btrfsManage [OPTION:tosnap] ALLSNAPLIST [root@exnet.gdb.it:]/dev/sda3 [root/root-2019-11-.*]
  • btrfsManage [OPTION:tosnap] NAMESNAPLIST [root@exnet.gdb.it:]/dev/sda3 [root/root-2019-11-.*]
  • btrfsManage [OPTION:tosnap] LASTSNAPLIST [root@exnet.gdb.it:]/dev/sda3 [root/root-2019-11-.*]
  • btrfsManage [OPTION:tosnap] SNAPLIST [root@exnet.gdb.it:]/dev/sda3 [root/root-2019-11-.*]
  • btrfsManage [OPTION:autoopt[,tosnap][,nomake]] SNAPDEL [root@exnet.gdb.it:]/dev/sda3 root/root-2019-11-.* [exclude subvolume]
  • btrfsManage [OPTION:tosnap] SNAPMOUNT [root@exnet.gdb.it:]/dev/sda3 [root/root-2019-11-01-14-52-01.18]
  • btrfsManage [OPTION:torec] SNAPSEND /|/dev/sda2 [[pc1/]root/]root-2019-11-01-14-52-01.18 [root@exnet.gdb.it:]/dev/sda3 [dst]

Project Samples

Project Activity

See All Activity >

Categories

System Shells

License

GNU General Public License version 2.0 (GPLv2)

Follow btrfsManage

btrfsManage Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of btrfsManage!

Additional Project Details

Operating Systems

Linux

User Interface

Console/Terminal

Programming Language

Unix Shell

Related Categories

Unix Shell System Shells

Registered

2017-01-08