From 3be0972fbdffdd280f17a6b70cbdb71ccd8f347c Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 23 Nov 2022 14:46:37 +0800 Subject: Make rclone show progress. --- docker/auto-backup/daemon.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docker/auto-backup') diff --git a/docker/auto-backup/daemon.bash b/docker/auto-backup/daemon.bash index db49e9b..a3b7249 100755 --- a/docker/auto-backup/daemon.bash +++ b/docker/auto-backup/daemon.bash @@ -34,7 +34,7 @@ function backup { echo "Use rclone to upload data..." # upload to remote - rclone copyto /tmp/data.tar.xz "mycos:$CRUPEST_AUTO_BACKUP_BUCKET_NAME/$current_time.tar.xz" + rclone --progress copyto /tmp/data.tar.xz "mycos:$CRUPEST_AUTO_BACKUP_BUCKET_NAME/$current_time.tar.xz" echo "Remove tmp file..." # remove tmp @@ -55,4 +55,3 @@ while true; do echo "Sleep for $CRUPEST_AUTO_BACKUP_INTERVAL for next backup..." sleep "$CRUPEST_AUTO_BACKUP_INTERVAL" done - -- cgit v1.2.3