Jérémy Lecour
76a298c042
bkctld-rm: delete empty jails in incs directory
2020-11-13 15:33:18 +01:00
Jérémy Lecour
3c5a646ae3
bkctld-rm: list jails from incs directory
...
We list jails in "incs" directory, not in "jails" directory so we can
clean old incs after a jail is archived
2020-11-12 18:35:41 +01:00
Jérémy Lecour
05c3715c6a
Better help message composition and formating
2020-10-11 14:53:26 +02:00
Jérémy Lecour
9cd94dabc2
An empty lock file shouldn't stop the program
2020-05-01 09:52:06 +02:00
Jérémy Lecour
fa109e216b
Give the pid of the new process
2020-04-21 09:03:18 +02:00
Jérémy Lecour
4829232a65
quote variable
2020-04-21 09:03:01 +02:00
Jérémy Lecour
11bb59831c
bkctld-rm: state the age of the process when killing it
2020-04-20 23:31:39 +02:00
Jérémy Lecour
205e3774a9
rewrite log messages and format
2020-04-20 08:29:21 +02:00
Jérémy Lecour
35d257d9c7
rm/inc : log progress
2020-04-20 00:38:44 +02:00
Jérémy Lecour
32f242fe9c
Reorganize temp files and lock files
...
Temp files/dirs all share a common prefix, so we can delete them all
effectively
Lock file is managed globally for bkctld-rm.
No need for a lock file for bkctld-inc anymore since there is a check on
the inc directory before starting.
2020-04-19 09:55:43 +02:00
Jérémy Lecour
096fe95b2f
bkctld-rm: fix lock file management
...
logic was badly implemented
2020-04-18 19:11:08 +02:00
Jérémy Lecour
723c8511e1
Don't forget to log the start time!
2020-04-18 19:10:19 +02:00
Jérémy Lecour
7a13a42ad2
Create empty directory in the default tmp directory
2020-04-18 19:09:52 +02:00
Jérémy Lecour
0dcd72d3f2
move relative_date() function to includes files
2020-04-18 10:28:44 +02:00
Jérémy Lecour
9c6be0e74c
bkctld-rm: fix inc removal
...
echo-ing the list of incs gives a single line, hard to match with lines
in the keep file.
We store the incs list in a temp file to help comparing contents.
2020-04-12 11:45:21 +02:00
Jérémy Lecour
3198ba7f37
bkctld-rm: log incs to be deleted
2020-04-11 08:41:04 +02:00
Jérémy Lecour
d29743357a
rename function for ext4 filesystems
2020-04-05 11:41:41 +02:00
Jérémy Lecour
c920e91304
improve incs policy parsing
2020-04-02 23:52:27 +02:00
Jérémy Lecour
f36771d1f0
bkctld-rm: kill existing processes
...
Ifa process is still removing incs when a ew one starts, the newest
kills the other to start again.
2020-04-02 18:30:52 +02:00
Jérémy Lecour
c58878b065
extract functions for config files
2020-04-02 18:26:53 +02:00
Jérémy Lecour
7a040bac20
better log messages
2020-04-02 14:50:55 +02:00
Jérémy Lecour
1652ebeb67
fix shecllcheck source directives
2020-04-02 13:44:13 +02:00
Jérémy Lecour
779dd9c518
use new conventions
2020-04-02 01:17:11 +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
e9e8a790ba
refactor check, inc, rm subcommands
...
function extractions
variables extractions
comments
2020-04-01 18:44:38 +02:00
Jérémy Lecour
e7e3683944
fix shellcheck source directive
2020-04-01 11:23:35 +02:00
Jérémy Lecour
018392e8e3
bkctld-rm: add support for the "new" canonical path for incs policy
2020-04-01 09:13:57 +02:00
Jérémy Lecour
10cc3695a4
Add some shellcheck directives for config source
2020-04-01 07:31:33 +02:00
Victor LABORIE
0a6b5c1b80
Do not run inc / rm in background when not using btrfs
2020-03-09 16:08:17 +01:00
Victor LABORIE
ed83404806
Add lock for bkctld inc / rm when not using btrfs ( Fix #32 )
2020-03-05 14:49:25 +01:00
Victor LABORIE
ae883e8ed0
Use mktemp for keepfile and rm it after usage ( Fix #9 )
2019-02-18 11:32:28 +01:00
Victor LABORIE
183bc05ec4
Use bkctld-list script for jails listing
2019-01-08 16:23:46 +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
e062a05a4b
Split bkctld into multiples scripts
2019-01-04 13:52:15 +01:00