* 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
15 lines
498 B
Bash
15 lines
498 B
Bash
#!/usr/bin/env bash
|
|
|
|
# unset borg settings
|
|
unset BORG_BASE_DIR BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK BORG_RELOCATED_REPO_ACCESS_IS_OK
|
|
# error abort without duration and error notice
|
|
if [ $1 == 1 ]; then
|
|
echo "=== [ERROR: $(date +'%F %T')] ==[${MODULE}]====================================>";
|
|
else
|
|
DURATION=$[ $(date +'%s')-$START ];
|
|
echo "=== [Run time: $(convert_time ${DURATION})]";
|
|
echo "=== [END : $(date +'%F %T')] ==[${MODULE}]====================================>";
|
|
fi;
|
|
|
|
# __END__
|