diff options
| author | crupest <crupest@outlook.com> | 2022-11-23 15:06:20 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-23 15:06:20 +0800 | 
| commit | b651bcce6390cc05a92017214c5bfe2e409e63e5 (patch) | |
| tree | ca4a24f330dfad00c2440ea4aaacf7b6aafd5652 | |
| parent | 6246b1b073858e1d6766f36413b843b99f1159ef (diff) | |
| download | crupest-b651bcce6390cc05a92017214c5bfe2e409e63e5.tar.gz crupest-b651bcce6390cc05a92017214c5bfe2e409e63e5.tar.bz2 crupest-b651bcce6390cc05a92017214c5bfe2e409e63e5.zip  | |
Fix rclone again.
| -rwxr-xr-x | docker/auto-backup/daemon.bash | 4 | ||||
| -rw-r--r-- | template/docker-compose.yaml.template | 2 | 
2 files changed, 5 insertions, 1 deletions
diff --git a/docker/auto-backup/daemon.bash b/docker/auto-backup/daemon.bash index 50b14df..d04c14a 100755 --- a/docker/auto-backup/daemon.bash +++ b/docker/auto-backup/daemon.bash @@ -32,6 +32,10 @@ function backup {      # tar and xz /data to tmp      tar -cJf /tmp/data.tar.xz -C / data +    # Output /tmp/data.tar.xz size +    size=$(du -h /tmp/data.tar.xz) +    echo "File data.tar.xz created with size of $size" +      destination="mycos:$CRUPEST_AUTO_BACKUP_BUCKET_NAME/$current_time.tar.xz"      echo "Use rclone to upload data to $destination ..."      # upload to remote diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index bc05f29..fe87da6 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -112,7 +112,7 @@ services:          - "crupest/auto-backup:latest"      container_name: auto-backup      volumes: -      - "./data:/data:ro" +      - "./data:/data"        - "./rclone.conf:/root/.config/rclone/rclone.conf:ro"      restart: on-failure:3      networks:  | 
