2612174cfe
snap-sync: introduce function block, parse_params()
...
- create function block
functions are sorted by name
- new function parse_params()
check initial commandline arguments and defaults
- introduce a verbose option
2017-11-22 21:59:17 +01:00
9f0524262d
snap-sync: track script-name as 'progname'
...
- change variable 'name' to 'progname'
2017-11-22 21:59:17 +01:00
3349270546
snap-sync: cleanup trailing whitespace
2017-11-22 21:59:17 +01:00
ab8a346cf2
TODO.md: scheduler for open tasks
...
- structure ideas on how to improve the wrapper
- keep track on programming tasks
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:17 +01:00
7b16bed4ee
Git: ignore reproducable contents
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:17 +01:00
19dc43125c
snap-sync.bash: rename bash version of snap-sync to snap-sync.bash
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:13 +01:00
James “Wes” Barnett
aa19fcbef8
Merge pull request #57 from R1dO/fix-Makefile_systemd_service
...
Remove makefile systemd install target
2017-11-17 11:27:28 -05:00
R1dO
6bcc54bfd8
Remove makefile systemd install target
...
Fixes a ``make install`` error due to missing directory.
Caused by the systemd script removal in commit 38caa9c
2017-11-17 14:31:42 +01:00
James Barnett
0875b5e31c
update documentation
2017-11-11 13:42:41 -05:00
James Barnett
efb6740dc7
add systemd example
2017-11-11 13:35:41 -05:00
James Barnett
38caa9cefa
remove systemd service
2017-11-11 12:59:03 -05:00
James Barnett
52db8f099a
List mounted btrfs disks with subvolid
...
When listing mounted devices, list the subvolid of the mountpoint, since
a single btrfs disk can be mounted multiple times using subvolumes.
Additionally tag snapshots with subvolid to keep track of this. This
will break current usage, but users can manually tag old snapshots with
subvolid's in order to migrate them. Add -s/--subvolid command line
parameter to pass specified subvolid to program.
Cf. #45 .
2017-11-11 11:57:49 -05:00
James Barnett
fe05b91db4
make libnotify optional
2017-11-07 13:04:01 -05:00
James Barnett
34ef2fa185
instead of deleting old snapshot, change to number algorithm and note that it can be removed
2017-08-27 17:18:45 -04:00
James Barnett
c97a99f652
version bump
2017-08-26 14:20:26 -04:00
James Barnett
c3a0ae0af1
Revert "rm old file"
...
This reverts commit 638c3b80e6 .
Fixes #53 .
2017-08-26 14:17:46 -04:00
James Barnett
217f0f1533
add SNAPPER_CONFIG
2017-08-26 06:59:25 -04:00
James Barnett
a4a6ef79a5
version bump
2017-08-23 19:36:55 -04:00
James Barnett
638c3b80e6
rm old file
2017-08-23 19:06:35 -04:00
James Barnett
455b8718dd
allow nonroot user to see help
2017-07-18 08:26:03 -04:00
James “Wes” Barnett
bcd17e77ad
Merge pull request #49 from albertmichaelj/master
...
TARGETS not being correctly excluded if root filesystem is btrfs.
2017-07-12 16:09:09 -04:00
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
James “Wes” Barnett
9d3be2c90f
Merge pull request #47 from tlvince/single-notify
...
Prevent duplicate notifications
2017-07-11 08:10:57 -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
e10c62761b
fix URL
2017-06-03 19:46:35 -04:00
James Barnett
0f9c540982
update year
2017-06-03 19:45:44 -04:00
James Barnett
5862b645da
Make sed quiet
2017-06-03 19:42:40 -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
James “Wes” Barnett
c040bc0a12
Merge pull request #34 from kalbasit/fix_crash_btrfs_4_11
...
btrfs send takes options before arguments
2017-05-29 16:52:49 +00: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
James “Wes” Barnett
1b8e53198c
Merge pull request #31 from kalbasit/patch-2
...
fix a typo: `$mkdir` => `$ssh mkdir`
2017-04-29 13:24:01 +00:00
Wael Nasreddine
00735c07b4
fix a typo: $mkdir => $ssh mkdir
2017-04-28 17:03:22 -07:00