Michael Albert
1a217f416b
Fixed typo from TARKET to TARGET.
2017-07-12 10:52:15 -04:00
Michael Albert
69f388de11
Currently, since there are no UUIDs listed when TARGETS is computed,
...
then nothing is excluded even if a number of the mounts shouldn't be
there. This fixes that and ensures that the UUIDs are correctl listed
with the right mount point. This was originall broken in commit c4f12235ae .
2017-07-12 10:47:20 -04:00
Tom Vincent
a451654b1c
Prevent duplicate notifications
...
Before, a notification would be sent for each login shell. Now,
deduplicate the users list and abstract the notification function whilst
we're at it.
2017-07-09 12:24:35 +01:00
James Barnett
c4f12235ae
Check if root system is BTRFS before excluding it
...
Fixes #44 .
2017-06-17 08:40:46 -04:00
James Barnett
0dd0300a23
look for config files in standard location on installation
2017-06-03 20:22:59 -04:00
James Barnett
c4654b8859
fix test for real
2017-06-03 19:59:33 -04:00
James Barnett
043bfe8bd2
fix typo
2017-06-03 19:58:25 -04:00
James Barnett
bd109348b1
use SNAPPER_CONFIG var cf. #43
2017-06-03 19:52:56 -04:00
James Barnett
663c0d6193
license header
2017-06-03 19:49:33 -04:00
James Barnett
f99fbbdafe
Change snapper configuration location via Makefile
...
Update installation instructions.
Fixes #43 .
2017-06-03 18:46:10 -04:00
James Barnett
bfbcefbe31
Check if UUID occurs twice for a configuration
...
Skip that configuration if that is the case.
Fixes #41 .
2017-06-01 08:46:43 -04:00
James Barnett
dffb4f4446
printf formatting
2017-05-31 15:09:30 -04:00
James Barnett
e278c72c9d
Prompt for user to delete failed snapshots
...
Fixes #40 .
2017-05-31 14:59:02 -04:00
James Barnett
a43712ae8a
Exclude source subvolumes
...
Find out parent mountpoint of /etc/conf.d/snapper, get UUID, and exclude
it from list of targets. If no external btrfs subvolumes found, exit.
Fixes #28 .
2017-05-31 14:29:51 -04:00
James Barnett
b70a26579a
rm test
2017-05-31 14:17:02 -04:00
James Barnett
789de29893
use error()
2017-05-31 12:54:19 -04:00
James Barnett
ccfb4c1209
trace errors
...
Fixes #39 .
2017-05-31 12:16:37 -04:00
James Barnett
70d39d08e1
forgotten version bump
2017-05-30 06:59:09 -04:00
James Barnett
be30b052a4
kill program when error is trapped
2017-05-30 06:53:43 -04:00
James Barnett
dfab7e88d0
Loop disk selection until a valid number is entered.
...
Fixes #33 .
2017-05-29 13:10:19 -04:00
Wael M. Nasreddine
effa00cc75
btrfs send takes options before arguments
...
btrfs-progs 4.11 includes this patch[0] which has updated the option
parser which has enforced the order in which arguments and options
appear in. See this email for context[1]
[0]: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=010ceab56e067b87ea282fde6ff792c1ceefd7dc
[1]: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg62226.html
2017-05-28 23:05:09 -07:00
James “Wes” Barnett
b449c1e0d0
Merge pull request #30 from kalbasit/patch-1
...
do not hardcode the name of the snapper configuration
2017-04-29 13:25:03 +00:00
Wael Nasreddine
00735c07b4
fix a typo: $mkdir => $ssh mkdir
2017-04-28 17:03:22 -07:00
Wael Nasreddine
004eed1eaa
fix a typo in the snapper command
2017-04-28 15:54:14 -07:00
James Barnett
2997b80981
specify if remote
2017-04-11 20:13:24 -05:00
James Barnett
e3ed75a4e5
update help
2017-04-11 14:33:29 -05:00
James Barnett
615d1a5dc5
ssh backups
2017-04-11 13:59:58 -05:00
James Barnett
cf02a5cf51
update errors
2017-02-14 17:05:51 -06:00
James Barnett
082b43f680
cleanup output functions
2017-02-13 19:48:01 -06:00
James Barnett
c823230ee7
formatting
2017-02-02 19:37:59 -06:00
James Barnett
35c6cf6f97
formatting
2017-02-02 19:36:44 -06:00
James Barnett
d3343b97dd
formatting
2017-02-02 19:35:35 -06:00
James Barnett
6fd2a01379
more notifications; rm variable output
2017-02-02 19:32:46 -06:00
James Barnett
d239b5cba2
prompt all at beginning
2017-02-02 19:25:39 -06:00
James Barnett
9e94c24007
use traps
2017-02-02 18:36:20 -06:00
James Barnett
a15ad6c820
Check all configurations for failed backups
...
Fixes #27 .
2017-01-31 20:32:19 -06:00
James Barnett
d94985a1d9
Make enter confirm question
...
Fixes #25 .
2017-01-31 20:30:41 -06:00
James Barnett
5a1192cd9c
Use variable for program name
2017-01-31 20:02:54 -06:00
James Barnett
e7085c4f92
Revert "logging goes to journal automatically from systemd service"
...
This reverts commit 153b43b1b7 .
2017-01-30 20:15:21 -06:00
James Barnett
7cb1ca9b46
typo
2017-01-30 20:12:35 -06:00
James Barnett
aae93cf921
notify when disk not mounted
2017-01-30 20:10:19 -06:00
James Barnett
c5cd2e9d71
fix notifications
2017-01-30 20:07:25 -06:00
James Barnett
0df8b2b02e
fix notifications
2017-01-30 20:01:07 -06:00
James Barnett
4c72cb4dea
move wrapper to script
2017-01-30 19:56:56 -06:00
James Barnett
ba0719e94f
fix indent
2017-01-30 19:39:17 -06:00
James Barnett
153b43b1b7
logging goes to journal automatically from systemd service
2017-01-30 18:57:06 -06:00
James Barnett
78b8a0dc31
Merge branch 'notify'
2017-01-29 19:30:47 -06:00
James Barnett
5ad6923d8c
notify all logged in users ( #20 )
2017-01-29 19:27:17 -06:00
James Barnett
97b857a1b6
Add note about found snapshots from failed backup.
...
Fixes #24 .
2017-01-28 07:37:59 -06:00
James Barnett
51f8429aa9
add script
2017-01-28 07:26:41 -06:00