aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/borgbackup
diff options
context:
space:
mode:
Diffstat (limited to 'arch-system/borgbackup')
-rwxr-xr-xarch-system/borgbackup6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch-system/borgbackup b/arch-system/borgbackup
index 17bd468..580f68b 100755
--- a/arch-system/borgbackup
+++ b/arch-system/borgbackup
@@ -34,8 +34,12 @@ backup() {
# As symlinks won't work, we use mount(8) to ensure the paths stay the same.
sudo -n backup-sudo mount "$1"
+ if [ -t 1 ]; then
+ borg_progress="--progress"
+ fi
+
cd /backup
- borg create --stats \
+ borg create --stats $borg_progress \
--exclude-from ~/.borg_exclude \
--show-rc \
::"$(basename "$1")" .