-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
sudo apt-get -qq update && sudo apt-get -qq dist-upgrade \ | ||
&& sudo apt-get -qq install curl net-tools tmux rclone \ | ||
&& sudo apt-get -qq autoremove --purge && sudo apt-get clean | ||
|
||
_name="$1" | ||
_id="$2" | ||
_secret="$3" | ||
_drive="$4" | ||
_token="$5" | ||
|
||
rclone config create "$_name" onedrive client_id "$_id" client_secret "$_secret" config_refresh_token false token "$_token" drive_id "$_drive" drive_type business | ||
|
||
rclone sync -P dataset:/"$_name" /dev/shm/"$_name" --transfers 8 --fast-list --progress --tpslimit 48 --drive-chunk-size 512M --max-transfer 2000G --multi-thread-streams 24 --onedrive-chunk-size 128000k --sharefile-chunk-size 512M |
This file was deleted.
Oops, something went wrong.