adding Dependencies to readme

This commit is contained in:
Djan 2022-11-12 09:26:49 +01:00
parent 303917b56d
commit 898caa14b5
2 changed files with 8 additions and 3 deletions

View File

@ -191,7 +191,7 @@ function bobastats {
else
echo "name,duration,original_size,compressed_size,deduplicated_size" > borg-stats-$(date +%Y-%m-%d).csv
for borgarchive in $(borg list --short ./);do
echo "Precessing "$borgarchive...""
echo "Processing "$borgarchive...""
borg info --json .::"$borgarchive" | jq -r '.archives[] | [.name,.duration,.stats.original_size,.stats.compressed_size,.stats.deduplicated_size] | @csv' >> "borg-stats-$(date +%Y-%m-%d).csv"
done
fi
@ -377,7 +377,6 @@ function bobacheckrepo {
borgrepo="${PWD##*/}"
borg check -v .
notify-send "borg check" "Repo $borgrepo checked"
}
###############################################################################

View File

@ -2,9 +2,15 @@
Borg alias and functions is designed to facilitate the daily use of BorgBackup. You will have to be in the repository folder to make these aliases and functions work.
To display a summary of available functions, type `bobaman` or `bobahelp` in your terminal.
## Dependencies
Of course `borgbackup` must be installed on yout system.
In order to mount archives you will need `fusermount`.
The command `bobastats` needs `jq`.
The command `bobarenamer` and `bobadeleter` needs `paste`.
## Installation
To include this file in your bashrc, place the file in a script folder of your choice (I choose `~/bin/`) and add this line to your bashrc :
```
. $HOME/bin/borgaliasandfunctions.txt
```
```