Commit Graph

29 Commits

Author SHA1 Message Date
Clemens Schwaighofer
edaf41f1af Repository ID info, borg command call via variable
The main info block gets Repository ID as info too (for cache/etc
folders check)

Missing borg command as variable for borg list command.
2022-03-29 09:57:12 +09:00
Clemens Schwaighofer
c7f2197614 add -E to sudo for upgrade script to keep enviroment variables for postgres run 2022-03-29 09:16:03 +09:00
Clemens Schwaighofer
88ea600e1d Mising remote path option in update script 2022-03-29 08:55:19 +09:00
Clemens Schwaighofer
f396032728 Add remote override path for borg backup in update script 2022-03-29 08:53:37 +09:00
Clemens Schwaighofer
18cbcea2b0 Archive print page make archive space 45 chars wide 2022-03-29 07:01:31 +09:00
Clemens Schwaighofer
a0537a24d3 PostgreSQL sudo for upgrade script 2022-03-29 06:46:23 +09:00
Clemens Schwaighofer
89897eb676 Add base BORG export variables in upgrade script 2022-03-29 06:36:06 +09:00
Clemens Schwaighofer
e1787fcfb3 Add missing DEBUG var setting for borg update wrapper script v4.1.2 2022-03-28 12:37:33 +09:00
Clemens Schwaighofer
0ce5442bcf Bug fix for update fix script
Add missing / for BASE_FOLDER if not set.

Dropped old file module borg name
v4.1.1
2022-03-28 11:54:21 +09:00
Clemens Schwaighofer
d9346c84a7 Borg Backup wrapper Version 4.0 update
* file backup borg folder has now -file name inside. Old folder must be
  manuall renamed
* All modules have the module id name as prefix in the backup set,
  _borg_backup_set_prefix_cleanup.sh needs to be run before to clean up
  all names or prune will not correctly delete old entries

New -T for one time target backup with custom prefix to have backups
outside the automated prune. -D option to delete this set

Add borg 1.2 support for compact which is called after delete and prune
to actually clean up the space.

-b borg executable and BORG_EXECUTEABLE override setting if borg is not
in path or another borg executable should be used
v4.1.0
2022-03-28 11:27:35 +09:00
Clemens Schwaighofer
828a59c984 Set proper default values for core settings.
If nothing set in the settings file some entries need to be default set:
COMPRESSION
COMPRESSION_LEVEL
ENCRYPTION
FORCE_CHECK
KEEP_LAST
KEEP_HOURS
KEEP_DAYS
KEEP_WEEKS
KEEP_MONTHS
KEEP_YEARS

If these variables are empty after settings file is ready they are set
to the default value. After that the sub configs override those settings
v3.0.3
2022-03-08 13:56:16 +09:00
Clemens Schwaighofer
ee1b3b23ab Fixed missing init for OPT_COMPRESSION variable in functions check 2022-03-03 10:23:39 +09:00
Clemens Schwaighofer
fd5ee4be04 Just Version number adjustments in scripts v3.0.2a 2022-01-06 09:42:16 +09:00
Clemens Schwaighofer
6dbf3497ea Fix all BACKUP_SET_NAME call order
Set PREFIX before name so we can use the prefix in the db name to
always lock them.
Also fix BACKUP_SET_NAME for gitea backup
v3.0.2
2021-12-20 15:38:50 +09:00
Clemens Schwaighofer
9d184f09f4 Bug fix for missing KEEP_MONTHS override check and double KEEP_LAST
No SUB_KEEP_MONTHS was ever set, but SUB_KEEP_LAST was checked twice
2021-12-16 13:59:05 +09:00
Clemens Schwaighofer
d26de19f92 Fix bug in Postgresql path check v3.0.1 2021-12-16 11:00:22 +09:00
Clemens Schwaighofer
252319848c Fix zabbix dump var name, remove repository replace
in all BORG_* calls remove the REPOSITORY replace as the repository is
set beforehand for the module

Fix the ZABBIX_DUMP_BIN name in settings and check
2021-12-15 12:50:26 +09:00
Clemens Schwaighofer
49fb930c43 Update borg zabbix module info update v3.0.0 2021-12-14 12:55:47 +09:00
Clemens Schwaighofer
b0516bbe5c Bug fix in zabbix backup module database type check 2021-12-14 12:49:59 +09:00
Clemens Schwaighofer
b42dab2af7 Update info for default backup keep, bug fix in convert time function 2021-12-14 12:41:06 +09:00
Clemens Schwaighofer
f0501baddb Make zabbix settings backup module executeable 2021-12-14 12:34:16 +09:00
Clemens Schwaighofer
a0d06573ec Zabbix settings backup, Readme update, base calls location move
New module for zabbix settings backup based on zabbix-dump

Move the _BORG_CALL and _BORG_PRUNE base calls to functions.check
instead of each module (they are all the same)

Update Readme file

Update default settings and remove KEEP so the original defaults are
used
2021-12-14 10:24:42 +09:00
Clemens Schwaighofer
ca8317079e Add info to gitea backup module 2021-12-13 17:06:38 +09:00
Clemens Schwaighofer
b30073a984 Make gitea module executeable 2021-12-13 16:30:50 +09:00
Clemens Schwaighofer
967f97f313 Add gitea backup module 2021-12-13 16:29:02 +09:00
Clemens Schwaighofer
24f816e55c Correct commands for settings group/folder rights and updated info 2021-12-13 13:52:59 +09:00
Clemens Schwaighofer
211645d919 Remove execute flag from borg.backup.file.settings-default 2021-12-13 13:22:18 +09:00
Clemens Schwaighofer
a661678441 Borg backup wrapper update, config update
Add a .gitignore for all other files that can appear in this
folder
(.config, .cache, settings files, etc)
Add backward compability check for file backup to
not auto add -file for
the file module unless flag is set
(FILE_REPOSITORY_COMPATIBLE)
2021-12-13 13:19:31 +09:00
Clemens Schwaighofer
93f8ea6054 Borg Backup Wrapper Scripts 2021-12-13 10:36:44 +09:00