Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple tool for BTRFS subvolumes and snapshots

License

NotificationsYou must be signed in to change notification settings

fabiolimace/btrfs-subvol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Subvol is a simple tool for BTRFS subvolumes and snapshots.

How to use

  • subvol help
  • subvol list
  • subvol create SUBVOLUME
  • subvol delete SUBVOLUME
  • subvol snapshot help
  • subvol snapshot list SUBVOLUME
  • subvol snapshot create [SUBVOLUME|all] [HINT]
  • subvol snapshot delete SUBVOLUME [SNAPSHOT|NUMBER|RANGE]
  • subvol snapshot rollback SUBVOLUME [SNAPSHOT|NUMBER]
  • subvol struct help
  • subvol struct check
  • subvol struct init
  • subvol free

Structure

The subvolumes and snapshots are organized in the folowing directories:

  • /subvol
  • /subvol/subvolumes
  • /subvol/snapshots

Note that by default the structure is on the file system root. You can change the variableSUBVOL_BASE_DIR to use another directory.

Installation

  1. Copy the scriptsubvol to/usr/local/bin/
sudo cp'subvol''/usr/local/bin/';sudo chmod +x'/usr/local/bin/subvol';
  1. Initiate thesubvol structure on/subvol directory
subvol struct init

Automatic snapshot on system boot

Execute these steps to enable automatic snapshots on boot.

  1. Copy the service script to/etc/systemd/system:
sudo cp'subvol-snapshot-auto.service''/etc/systemd/system/'
  1. Enable the service script:
sudo systemctlenable subvol-snapshot-auto.service

// The end

About

A simple tool for BTRFS subvolumes and snapshots

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp