Giter VIP home page Giter VIP logo

fbackup's Introduction

fbackup

Perform incremental backups using a fossil repository as a storage. Each backup ends up in a new commit where files are added / removed / modified according to their staus with respect to the previous commit.

Files to include / exclude from the backup are specified in a configuration file (see -conf option below), which consists of one "include" and one "exclude" section, in which files or directories to include / exclude from the backup are listed, separated by whitespace (\n, \t, space, ...). Directories are searched recursively. Example:

include {
    /path/to/file/to/include
    /path/to/directory/to/include
    /another/1 another/2 another/3
}
exclude {
    /path/to/file/to/exclude
    /path/to/directory/to/exclude
}

In addition, the exclude-match section provides a way to exclude files which name match one of the listed patterns.

exclude-match {
    *.tar.gz
    *.exe
}

The software is written in Tcl and depends on fossil, and tcllib. Files are hard-linked from their location on disk into the temporary checkout using cpio.

Usage:

fbackup : ./fbackup.tcl [options]
options:
 -conf   value    Path to the backup list file      <./fbackup.list>
 -cpio   value    Path to the "cpio" executable     </usr/bin/cpio>
 -fossil value    Path to the "fossil" executable   </usr/local/bin/fossil>
 -name   value    Name of the backup project        <Backup>
 -repo   value    Path to the repository file       <./fbackup.fossil>
 --               Forcibly stop option processing
 -help            Print this message
 -?               Print this message

fbackup's People

Contributors

gahr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nearvarna

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.