Is there any way to run rclone move continuously? Currently I’m running it on windows so no mount point which could have solved my issue. Now I have to wait for it to finish and then restart it. The best solution would be if rclone could pick up changes in the source and just add them to the queue.
Its not possible atm, ncw will look into it.
In my opinion the best solution would be that as soon as rclone have 1 free transfer it rechecks if any aditional files are available for upload.
Example
you set rclone copy with 200 files in source, you set your rclone to use max 50 transfers, as soon as it successfully copy 1 file it automatically picks up the next one so it always use the max transfers you set.
Here is a quick and dirty PS script I thru together if someone is interested:
$App = "C:\Users\Administrator\Documents\rclone-v1.34-60-windows-amd64\rclone.exe"
$Source = "C:\qBittorrent\Encrypted"
$Dest = "amazon:PMS"
$Config = "C:\Users\Administrator\Documents\rclone.conf"
$Log = "C:\Users\Administrator\Documents\rclone.log"
$Params ="--checksum --verbose"
[System.Collections.ArrayList]$Transfered = @()
# Loop
While ($true) {
Write-Output "$(Get-Date) Starting rclone" | Tee-Object -FilePath $Log -Append
$Files = Get-ChildItem -Path $Source -File -Recurse
ForEach ($File in $Files) {
$FileSource = $File.Fullname
If ($Transfered -notcontains $FileSource) {
$FileFolder = $File.DirectoryName.Replace($Source,"")
$FileDest = "$Dest$FileFolder"
$Transfered.Add($FileSource)
Write-Output "$(Get-Date) Transfering: $FileSource" | Tee-Object -FilePath $Log -Append
Start-Process -WindowStyle Minimized $App -ArgumentList "move `"$FileSource`" `"$FileDest`" --config=`"$Config`" $Params" | Tee-Object -FilePath $Log -Append
Start-Sleep 10
}
}
# Sleep 5min
Start-Sleep 300
# Remove empty folders
$Folders = Get-ChildItem -Path $Source -Recurse | Where {$_.PSIsContainer -and @(Get-ChildItem -Lit $_.Fullname -r | Where {!$_.PSIsContainer}).Length -eq 0}
ForEach ($Folder in $Folders) {
$Fullname = $Folder.Fullname
Write-Output "$(Get-Date) Delete folder: $Fullname" | Tee-Object -FilePath $Log -Append
$Folder.Delete() | Tee-Object -FilePath $Log -Append
}
}