Giter Club home page Giter Club logo

scroll-old's Introduction

Your restic repository password should be placed in a file named `./data/key`

`arch-repo` refers to the repo location on linux, and `win-repo` refers to the same on windows

requires jq

wildcard is '.'

./rb A COMMAND ...
    Auto mode. Should be used in any automated scripts. Automatic actions will be noted as
    such in logs and automated backups will be tagged as such. Conversely, user actions
    (those without use of the 'A' flag) are marked and tagged as 'USER'.

./rb x [ARG1 ARG2 ...]
    Call restic with the given args. Makes one call to each configured repository.
    Ex.:
        ./rb x snapshots
        ./rb x ls latest

./rb X REPO|WILD [ARG1 ARG2 ...]
    Call restic with the given args. Operates on the specified REPO, or on all repos if
    the wildcard is given. Calling `X` with a wildcard is the same as calling `x`.
    Ex.:
        ./rb x snapshots
        ./rb x ls latest

./rb list [REPO|WILD]
    List snapshots. Optionally you may provide the name of a repository, which may also be the wildcard character.
    If no repository name is given, defaults to all repos.
    Ex.:
        ./rb list
        ./rb list Foo
        ./rb list .

./rb repos
    List all configured restic repositiories.
    Ex.:
        ./rb repos

./rb backups
    List all configured backups.
    Ex.:
        ./rb backups

./rb logs [REPO|WILD]
    Print logs. You may provide a repository name, which may be the wildcard character. If no name is given,
    defaults to all repos.
    Ex.:
        ./rb logs
        ./rb logs test
        ./rb logs .

./rb backup [BACKUP|WILD] [REPO|WILD] [TAG1] [TAG2] ...
    Ex.:
        ./rb backup              # Runs all backups to all repositories
        ./rb backup . .          # Runs all backups to all repositories   
        ./rb backup X .          # Run backup 'X' to all repos
        ./rb backup . Y          # Run all backups to repo 'Y'
        ./rb backup X Y          # Run backups 'X' to repo 'Y'
        ./rb backup . . FOO BAR  # Run all backups, tagging the snapshots with 'FOO' and 'BAR'
        ./rb backup . . AUTO     # Mark automatic backups with the AUTO tag to avoid the USER tag


./rb forget [D|d] BACKUP|WILD REPO|WILD POLICY1 [POLICY2] ...
    Dereference data in the repository according to a policy. This data is lost but not removed from
    storage. Use the 'prune' command to free storage space.
    Policies look like 'monthly=7', 'tag=FOO', 'last=1'. Any restic policy can be used like this.
    The 'D' or 'd' flag makes `forget` operate in dry run mode. Nothing will be forgotten, instead a
    list of snapshots that would be kept or forgotten are printed out.
    By default, `forget` will ask the user to confirm the operation. To avoid this call `FORGET` instead,
    which enables the force flag.
    Ex.:
        ./rb forget . . daily=7 monthly=2  # Apply a policy to all backups and all repos
        ./rb forget X Y hourly=72          # Apply a policy to backup 'X' in repo 'Y'
        ./rb forget . . tag=FOO monthly=2  # Keep all snapshots tagged 'FOO'

.rb FORGET ...
    Like `forget` but suppresses the required user confirmation of `forget`. Should be used in
    automated scripts.

./rb prune [REPO|WILD]
    Remove unused data from one or more repos
    Ex.:
        ./rb prune
        ./rb prune .
        ./rb prune X

./rb restore BACKUP|WILD REPO PATH
    Restore one or more backups from REPO to PATH
    REPO cannot be the wildcard character (backups must be restored from one specific repo)
    Ex.:
        ./rb restore . A /tmp/restore
        ./rb restore home B /home

./rb S COMMAND ...
    Prepend any command with 'S' or 's' to enable safe mode. In safe mode no calls to restic
    will be made. Instead, the command line arguments that would have been sent to restic
    are printed to the console. This has no effect on commands such as 'repos', 'logs', or
    'unlock', which don't call on restic.

scroll-old's People

Contributors

0e9b061f avatar

Watchers

 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.