Skip to content

a very simple shell script wrapper around restic to run backups

Notifications You must be signed in to change notification settings

triole/restiker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Restiker

  1. Synopsis
  2. Config
  3. Help

Synopsis

Restiker is a very simple wrapper around restic that can be used to launch backups. Being not versatile on purpose it can't do anything else.

Note that it requires dasel to parse the configuration files.

Config

Restiker's config files support env variables. In addition you can use ${SELFDIR} as placeholder for the path in which the restiker script resides.

This is what a config looks like...

repo = "rest:https://user:pass@your.restic/repo"

# if cert is not given, restiker will omit the argument
# cert = "/home/myuser/restiker.crt"
cert = "/home/myuser/restiker/conf.toml"

folders_to_backup = [
    "/etc",
    "/home/myuser",
    "/home/my documents",
    "/home/even more documents"
]

# can be empty
additional_args=[
    "-vv"
]

Running a backup with the config file example above, a command like the following will be launched...

restic --cacert /home/myuser/restiker/conf.toml -vv -r rest:https://user:pass@your.restic/repo backup "/etc" "/home/myuser" "/home/my documents" "/home/even more documents" 

Help

restiker help

  args
    -i/--ignore   ignore if files do not exist
    -d/--debug    do nothing, just print what would have happened
    -h/--help     display this help

  usage
    restiker examples/conf.toml
    restiker examples/conf.toml -d

About

a very simple shell script wrapper around restic to run backups

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages