The progress bar of the web ui work is not working, but every time it gives me this error: create-empty-src-dirs [UNRAID]

What is the problem you are having with rclone?

Run the command 'rclone version' and share the full output of the command.

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

#!/bin/bash

LOG_FILE=/mnt/user/backup/app-logs/rclone-sync-libvirt-$CURRENT_DATE.log

echo "Logging to $LOG_FILE"

#######
# sync the Backups folder to gdrive
# "/mnt/user/backup"
# Read documentation on what these (suggested) flags do
# https://rclone.org/flags/
#######


rclone sync -vv  \
--backup-dir=gdrive:/_OLD/Backups-libvirt-$CURRENT_DATE \
--fast-list \
--tpslimit=3 \
--log-file=$LOG_FILE \
--checkers=4 \
--rc \
_async=true \
/mnt/user/backup/libvirt gdrive:/libvirt 

rm /mnt/user/backup/libvirt/*

echo "Log file can be found at $LOG_FILE"

The rclone config contents with secrets removed.

[gdrive]
type = drive
client_id = xxxx
client_secret = xxxxx
scope = drive
token = {"access_token":"xxx"}
team_drive = 
root_folder_id = xxxx
server_side_across_configs = true

A log from the command with the -vv flag

2022/04/13 21:03:04 INFO  : Starting transaction limiter: max 3 transactions/s with burst 1
2022/04/13 21:03:04 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "sync" "-vv" "--backup-dir=gdrive:/_OLD/Backups-libvirt-20220413" "--fast-list" "--tpslimit=3" "--log-file=/mnt/user/backup/app-logs/rclone-sync-libvirt-20220413.log" "--checkers=4" "--rc" "_async=true" "/mnt/user/backup/libvirt" "gdrive:/libvirt"]
2022/04/13 21:03:04 NOTICE: Serving remote control on http://localhost:5572/
Usage:
  rclone sync source:path dest:path [flags]

Flags:
      --create-empty-src-dirs   Create empty source dirs on destination after sync
  -h, --help                    help for sync

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command sync needs 2 arguments maximum: you provided 3 non flag arguments: ["_async=true" "/mnt/user/backup/libvirt" "gdrive:/libvirt"]

hello and welcome to the forum,

_async=true, as far as i know, that not should be run on the command line with rclone sync

to be used, when running a command using rclone rc
https://rclone.org/rc/#running-asynchronous-jobs-with-async-true

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.