aboutsummaryrefslogtreecommitdiff
path: root/docker/auto-backup/daemon.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-23 14:58:13 +0800
committercrupest <crupest@outlook.com>2022-11-23 14:58:13 +0800
commit6246b1b073858e1d6766f36413b843b99f1159ef (patch)
tree05f0fc3e370bc5add106d44c09148dc6a9c03b4c /docker/auto-backup/daemon.bash
parent13b8e2c7080873e72fcc865df2151ae8d2693052 (diff)
downloadcrupest-6246b1b073858e1d6766f36413b843b99f1159ef.tar.gz
crupest-6246b1b073858e1d6766f36413b843b99f1159ef.tar.bz2
crupest-6246b1b073858e1d6766f36413b843b99f1159ef.zip
Fix rclone output.
Diffstat (limited to 'docker/auto-backup/daemon.bash')
-rwxr-xr-xdocker/auto-backup/daemon.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/auto-backup/daemon.bash b/docker/auto-backup/daemon.bash
index afed6b5..50b14df 100755
--- a/docker/auto-backup/daemon.bash
+++ b/docker/auto-backup/daemon.bash
@@ -32,10 +32,10 @@ function backup {
# tar and xz /data to tmp
tar -cJf /tmp/data.tar.xz -C / data
- destination="mycos:$CRUPEST_AUTO_BACKUP_BUCKET_NAME/$current_time/data.tar.xz"
+ destination="mycos:$CRUPEST_AUTO_BACKUP_BUCKET_NAME/$current_time.tar.xz"
echo "Use rclone to upload data to $destination ..."
# upload to remote
- rclone --progress copyto /tmp/data.tar.xz "$destination"
+ rclone -v copyto /tmp/data.tar.xz "$destination"
echo "Remove tmp file..."
# remove tmp