Commit Graph

95 Commits

Author SHA1 Message Date
Jérémy Lecour 5cbc2cbf42 Split client and server parts 2022-04-03 11:28:59 +02:00
William Hirigoyen (Evolix) b9bd67488b Reduce IP column width to avoid empty ligne return 2021-12-24 10:04:27 +01:00
William Hirigoyen (Evolix) f8db747970 Header in uppercase, enlarge column RETENTION 2021-12-03 15:36:54 +01:00
William Hirigoyen (Evolix) 0b777b4a3f Add a header for bktcld status output. 2021-12-03 15:17:00 +01:00
Jérémy Lecour b8f0a377d9 force flag must be exported 2021-06-30 14:56:09 +02:00
Jérémy Lecour 134faf3e47 bkctld-archive: archive a jail 2021-06-29 17:25:35 +02:00
Jérémy Lecour a50991226c bkctld-rename: rename a jail and all its incs and configuration… 2021-06-29 17:25:35 +02:00
Jérémy Lecour 1a52f012a6 bkctld: new inc-lock and inc-unlock command 2020-11-28 10:46:57 +01:00
Jérémy Lecour 2ccd8c1b8d add a [-f|--force] option to remove confirmation on some commands 2020-10-11 14:57:47 +02:00
Jérémy Lecour 05c3715c6a Better help message composition and formating 2020-10-11 14:53:26 +02:00
Jérémy Lecour c1fbe6394f Add "version" and extract "help" options 2020-10-07 20:50:17 +02:00
Jérémy Lecour cf95909f0b bkctld: Replace xargs with a simple loop 2020-10-05 11:36:02 +02:00
Jérémy Lecour 0ad1e8d342 Split check into check-jails and check-setup
bkctld-check-setup checks if the partition is mounted and writable, if 
firewall is configured and if all jails are started
2020-07-10 14:34:06 +02:00
Jérémy Lecour 505e0f7f53 New command bkctld upgrade-config
It moves the legacy config file "/etc/evobackup/<jail>" to the new 
config structure "/etc/evobackup/<jail>.d/incs_policy"
2020-05-28 11:11:59 +02:00
Jérémy Lecour 807dd44408 Display help message if mandatory arguments are missing 2020-04-25 10:30:21 +02:00
Jérémy Lecour f7e8324ba5 Embed check-incs and check-last-incs in bkctld 2020-04-18 10:29:21 +02:00
Jérémy Lecour 4c9cbf976e subcommand options are examined in their respective context 2020-04-18 10:28:06 +02:00
Jérémy Lecour 14c4b63e69 error() function is not available at this stage 2020-04-18 10:26:51 +02:00
Jérémy Lecour effecc689d bkctld: auto-detect lib directory 2020-04-08 17:53:28 +02:00
Jérémy Lecour 8099dcbbfe reformat authors list 2020-04-08 17:51:56 +02:00
Jérémy Lecour 492433133e fix shellcheck source directive 2020-04-02 23:39:26 +02:00
Jérémy Lecour 092b204be2 naming conventions 2020-04-02 23:14:34 +02:00
Jérémy Lecour 5432c2eee8 whitespaces 2020-04-02 13:40:48 +02:00
Jérémy Lecour 01cc972d83 rename lib/config to lib/includes 2020-04-02 00:31:57 +02:00
Jérémy Lecour 0b5164b91c Add some shellcheck directives 2020-04-01 07:24:33 +02:00
Victor LABORIE d09d0b0572 Do not create dirs in bkctld script 2019-01-08 16:29:03 +01:00
Victor LABORIE 183bc05ec4 Use bkctld-list script for jails listing 2019-01-08 16:23:46 +01:00
Victor LABORIE d9f8ae7036 Move check_jail_on functions into bkctld-is-on script 2019-01-07 16:34:44 +01:00
Victor LABORIE 0272c43751 Move usage functions into bkctld-help script
* Usage output is now auto-generated
2019-01-07 14:47:07 +01:00
Victor LABORIE d0165a9e3c Move firewall functions into bkctld-firewall script 2019-01-04 16:55:56 +01:00
Victor LABORIE 1522d2f6cd Merge bkctld-params and some functions into bkctld-(ip|port|key) scripts 2019-01-04 16:39:35 +01:00
Victor LABORIE 6caa9078e6 Parallelize bkctld <subcommand> all 2019-01-04 16:03:33 +01:00
Victor LABORIE e062a05a4b Split bkctld into multiples scripts 2019-01-04 13:52:15 +01:00
Victor LABORIE ee34be5fec btrfs is now in /bin 2018-12-04 16:11:00 +01:00
Victor LABORIE f1be9e7132 Check if disk is mounted in bkctld check 2018-11-29 17:04:40 +01:00
Victor LABORIE 958eeb8776 Use absolute PATH for btrfs command
* Because command -v fail in some cases
2018-07-04 14:48:36 +02:00
Victor LABORIE 1b3b68ba16 Fix last update date of stats index file 2018-06-13 18:21:31 +02:00
Victor LABORIE a835491703 Add incs info to stats 2018-06-13 18:01:43 +02:00
Victor LABORIE f780d4d94a Add stats subcommands 2018-06-13 15:22:21 +02:00
Victor LABORIE b1400c83b6 Better bkctld check output 2018-05-30 18:30:15 +02:00
Victor LABORIE dcba6d5634 Merge check_nrpe into bkctld check subcommand 2018-05-30 16:39:26 +02:00
Victor LABORIE 2893953ec0 Reload when update params 2018-03-28 14:09:22 +02:00
Victor LABORIE 685b70b632 Fix reload 2018-03-27 18:35:06 +02:00
Victor LABORIE 3c12286704 Double quote all vars and add brackets 2018-03-27 18:22:31 +02:00
Victor LABORIE fa27759cad Force variables definition and add a set -u 2018-03-27 17:11:25 +02:00
Victor LABORIE d565374c5d Retab 2018-03-27 16:39:03 +02:00
Victor LABORIE 0927e79954 Use cat instead of echo for usage function 2018-03-27 16:31:50 +02:00
Victor LABORIE 8680b742dd Refactoring of logging and notification
* Use logger command, no longer write directly to logfile
* Loglevel can be set in bkctld.conf
* Remove mail notification, cronjob do it when stdout/stderr
2018-03-27 16:14:39 +02:00
Victor LABORIE 3b40cb19d9 Fix bkctld logging on non interactive usage 2017-12-04 11:49:45 +01:00
Victor LABORIE dbea4d46b1 Use touch instead of lastlog in sshrc
Because lastlog -S doesn't work on Debian Jessie
lastlog: invalid option -- 'S'
2017-08-30 17:24:45 +02:00