0e9b061f / scroll-old Goto Github PK
View Code? Open in Web Editor NEWWrapper around restic offering configuration and systemd integration, and more
Wrapper around restic offering configuration and systemd integration, and more
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.