Giter VIP home page Giter VIP logo

snapshot-btrfs's Introduction

snapshot-btrfs

snapshot-btrfs is a tool offer btrfser eazier way to do daily snapshot work. It's merges some code and ideal from https://github.com/mk01/btrfs-auto-snapshot. But they use different base way to manage snapshot.

snapshot-btrfs only focus on those btrfs subvolumn which currently mount on system. Eeach subvolumn has a directory .btrfs to save individual setting and snapshot. For management reason, it create readonly snapshot to prevent careless mody to snapsot. Before auto-snapshot command work. You moust run mark-auto to tell snapshot-btrffs to incldue this mount point when doing auto-snapshot.

Just like btrfs-autosnapshot and zfs-autosnapshot, It use crontab to invoke program for daily automatic snapshot. Different crontab implement has little different from setting and working. You should check if snapshot-btrfs work currently for your system or do some fix from snapshot-btrfs.cron to suit your system.

Usage: ./snapshot-btrfs command [options] [name...]

command            Is one of 
                         auto-snapshot, snapshot ,delete-snapshot,clear-snapshot
                         mark-auto, unmark-auto, show-auto-mark
                        
-d, --debug        Print debugging messages.
-n, --dry-run      Print actions without actually doing anything.
-h, --help         Print this usage message.
-k, --keep=NUM     Keep NUM recent snapshots and destroy older snapshots.
-l, --label=LAB    LAB is usually 'hourly', 'daily', or 'monthly' (default
                   is 'regular').
-p, --prefix=PRE   PRE is 'snap' by default.
-e, --name         Snapshot name. If specified, -l and -p are overridden
                   and --keep is not considered.
-q, --quiet        Suppress warnings and notices at the console.
-s, --syslog       Write messages into the system log.
-v, --verbose      Print info messages.

name               Mount point path, or empyt for all mount point.

snapshot-btrfs's People

Contributors

scsi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.