Commit Graph

25 Commits

Author SHA1 Message Date
Gerard Bosch
8eb7d56fdd Update comment 2022-02-09 12:59:54 +01:00
Erik Westrup
b5dcce5d2a Adjust comment 2022-02-08 17:58:46 +01:00
Erik Westrup
e0139ff9c8 Address linter issues 2022-02-08 17:33:24 +01:00
Erik Westrup
ab928d0dfd Rename *.env files to *.env.sh
Fixes #66
2022-02-08 17:26:08 +01:00
Erik Westrup
645df1a0d4 Move /sbin to /bin
As more users would have /bin than /sbin in their PATH
2022-02-07 18:22:36 +01:00
Erik Westrup
1ee0e2c919 Fix cron with multiple profiles 2022-02-06 14:36:41 +01:00
Erik Westrup
9760cd05ec Truly support custom PREFIX= install
* Before, doing `$ PREFIX=/usr/local make install` would install files to`/usr/local/usr/local..` which is wrong
* With this PR, files will be installed to the expected location e.g. `/usr/local/etc/restic`
* `Makefile` almost completely rewritten
   * As e.g. `default.env` would source `_global.env`, `default.env` must be edited to find the right location of `_global.env` depending on what `$PREFIX` was set to.
   * see documented build stages in the `Makefile` itself.
   *  Made sure that the rules are correct so that only modifed files are installed, not all at once unnecessarily like before.
* A sub-goal was that the [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=restic-systemd-automatic-backup#n20) for Arch should not need to do any custom install configuration, to keep everything easier to maintain. `$ make install` should work out of the box for Arch.
* Additionally added the `-b` flag to `install(1)` that makes a backup of existing `etc/restic/*` files before installing a newer version.

Fixes #49
2022-02-03 20:52:00 +01:00
Erik Westrup
73bce43f7d s/TODO/*EDIT*/ to not confuse with development TODOs 2022-02-03 14:41:21 +01:00
Erik Westrup
dd073dfc73 Fix arguments by using arrays to buildup 2022-02-01 19:24:38 +01:00
Erik Westrup
79d13a1e64 Prefix envvars with RESTIC_ for consistencty
Fix #63
2022-02-01 16:59:12 +01:00
Erik Westrup
4e8b8adff6 Rename backup_exclude to backup_exclude.txt
Fixes #64
2022-02-01 16:52:20 +01:00
Erik Westrup
f4b90c2499 Add RESTIC_VERBOSITY_LEVEL
Fixes #50
2022-02-01 16:19:05 +01:00
Erik Westrup
341f3e79ec Allow extra args to restic-backup with RESTIC_BACKUP_EXTRA_ARGS
Fixes #56
2022-02-01 16:15:18 +01:00
Erik Westrup
a4cd65db5a Align terminology of credentials with B2
Fixes #59
2022-02-01 16:04:40 +01:00
Gerard Bosch
d8f25cdf88 Multiple profile configuration (#45)
Adds possibility to have multiple profiles with different backup paths, retention etc.

Co-authored-by: Matt Feifarek <matt.feifarek@gmail.com>
Co-authored-by: Erik Westrup <erik.westrup@gmail.com>
2022-02-01 10:09:36 +01:00
Warren Volz
c7d702a1ed Fix conflicts for restic-check service 2020-06-01 18:04:41 -06:00
Todd E Johnson
e1d7d5cd20 Fix restic-check serivces to not start on metered connections 2019-07-15 21:09:06 -05:00
Todd E Johnson
d8c0a8d2d6 Add nm-unmetered-connection checks 2019-07-15 20:45:24 -05:00
Todd E Johnson
348fee95a5 Merge branch 'master' into 16-metered-net 2019-07-13 19:01:49 -05:00
Todd E Johnson
e3f01b7911 Move /.backup_exlude to /etc/restic/backup_exclude 2019-07-13 00:09:58 -05:00
Todd E Johnson
b4ab2f1a86 Add requires to unmetered-connection.service 2019-07-12 21:35:25 -05:00
Bill Kaguru Wanjohi
5f35a74bd1 use template files to improve security, reproducibility 2019-04-26 14:26:05 +00:00
Erik Westrup
47a129d2c6 Added cron example for FreeBSD 2018-07-01 10:59:11 +02:00
Erik Westrup
415be87690 Corrected placeholder names 2018-06-02 00:29:19 +02:00
Erik Westrup
6b3a3a7773 Put files in directory structure 2018-04-13 20:39:24 +02:00