Last update at :2024-07-14,Edit by888u
This tool is the best I have ever used. It is recommended to use it!
1. Introduction to OneDriveUploader
Supports uploading files and folders to specified directories and maintaining the directory structure before uploading. Supports the use of command parameters to facilitate external program calls. Support custom upload chunk size. Supports multi-threaded upload (multiple files uploaded at the same time). Supports dynamically adjusting the number of retries based on file size
2. OneDrive authorization
Then you will get a URL, don’t close it, it will be used later.
3. Use of OneDriveUploader under LInux
1. Download and give permission
wget https://raw.githubusercontent.com/MoeClub/OneList/master/OneDriveUploader/amd64/linux/OneDriveUploader -P /usr/local/bin/ chmod +x /usr/local/bin/OneDriveUploader2. Initialization
OneDriveUploader -a "url"Replace the url with the address obtained in the browser above, starting with http://loaclhost. Once authorized, it will not be used again.
3. Configuration file
After the authorization is successful, the configuration file auth.json is generated in the same directory (so, for ease of operation, choose a directory that is easy to remember and perform initialization) Modify the configuration file or not. I mainly changed the thread.
4. When using commands, all parameters following the command must have English double quotes ""
-s // *Required parameters, the file or folder to be uploaded -r // Upload to a directory in the network disk, default: root directory -t // Number of threads, the number of files uploaded at the same time. Default: 2 -b // Customize the upload chunk size, which can improve network throughput, but is limited by disk performance and network speed. -c //Configuration file path -f // switch // Add the -f parameter to force reading of the block size configuration and multi-threading configuration in auth.json. // Without the -f parameter, the currently used parameters will be saved in the auth.json configuration file each time it is overwritten. -n // When uploading a single file, rename it in the network disk
5. Usage examples
# Upload the mm00.jpg file in the same directory to the root directory of the OneDrive network disk OneDriveUploader -s "mm00.jpg" # Upload the mm00.jpg file in the same directory to the root directory of the OneDrive network disk and rename it to mm01.jpg OneDriveUploader -s "mm00.jpg" -n "mm01.jpg" # Upload the Download folder in the same directory to the root directory of the OneDrive network disk OneDriveUploader -s "Download" # Upload the Download folder in the same directory to the OneDrive network disk Test directory OneDriveUploader -s "Download" -r "Test" # Upload the Download folder in the same directory to the OneDrive network disk Test directory, using 10 threads OneDriveUploader -t 10 -s "Download" -r "Test" # Upload the Download folder in the same directory to the OneDrive network disk Test directory, use 15 threads, and set the block size to 20M OneDriveUploader -t 15 -b 20 -s "Download" -r "Test"6. If there are many or large files, you can let the program run in the background: nohub OneDriveUploader -s "File or Directory" &
4. How to use OneDriveUploader under Windows
Download the software to the English directory, it is best to make it simple.
Then win + R, enter cmd to enter the command line.
The remaining operations are the same as in Linux, except that the file is OneDriveUploader.exe
5. MacOS, we don’t have it, so I won’t talk about it.
File download: https://github.com/MoeClub/OneList/tree/master/OneDriveUploader/ amd64
Local download: OneDriveUploader-20191205
Recommended site searches: in domain name, online IP search, virtual host agent, server rental, US domain name query, domain name information query, Guangdong website registration station group server, Hong Kong's best virtual host,
发表评论