Jim Paris
35c72e7ce6
backup: calculate size only once
We need to calculate size so we get an idea of actual used disk space
(which is closer to how much maximum space will be used in the backup,
in case files have huge holes). Calculate it once to avoid errors.
2 years ago
Jim Paris
27213033a2
backup: use decorated paths for matching patterns
By ensuring that directory names end in '/', the behavior of
"match only directories if the pattern ends with /" comes for
free based on how wcmatch.glob works, so we don't need to run
the regex match twice.
2 years ago
Jim Paris
5152a316c6
backup: use helper to format binary paths as strings
2 years ago
Jim Paris
46195daaaa
Improve borg process spawning and result checking
2 years ago
Jim Paris
ffe13a45e6
Add --debug option
2 years ago
Jim Paris
34817890b2
Update README cheat sheet
2 years ago
Jim Paris
0af42b8217
Fix shebang line after setup
2 years ago
Jim Paris
738573a292
Fix type issue
2 years ago
Jim Paris
4a707968ab
Spawn borg and pass input
2 years ago
Jim Paris
356f6db2ca
Remove debug prints
2 years ago
Jim Paris
e72564436c
Update git setup
2 years ago
Jim Paris
74e9e82117
Change to borg dir for setup
2 years ago
Jim Paris
e82d40bbfb
Fix some exclude/include path issues; misc setup improvements
2 years ago
Jim Paris
22b663fa61
Rework how exclude/include pattern matching works a bit
2 years ago
Jim Paris
863b7acc9b
Add arg to specify borg program
2 years ago
Jim Paris
0f56415493
Use actual file blocks rather than apparent size; doc updates
2 years ago
Jim Paris
0039ca1ee0
Implement filesystem scanning with configurable filters
2 years ago
Jim Paris
6978cfc012
Continue reworking towards local copy of borg, etc
2 years ago
Jim Paris
883f984aef
Restructure things; we will clone this repo directly on each client
2 years ago
Jim Paris
2dd60aaf28
Add initial version of backup file lister
2 years ago
Jim Paris
552e929247
Fix apt commandline
2 years ago
Jim Paris
de53a0c11d
Add README, remove useless mount.sh
2 years ago
Jim Paris
0f82c74aaa
Fix some issues in generated scripts; make passphrase non-executable
2 years ago
Jim Paris
a0a9b70fd7
Finish first version of script
2 years ago
Jim Paris
cec72d0dcb
Initial commit
2 years ago