Logging total progress of copy

What is the problem you are having with rclone?

-P progress is only shown when rclone copy is in foreground. There is no logging of total progress to the log files. Looking for a solution to look inside the running process and find out what the total progress of the copy is.

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

rclone v1.63.1

- os/version: ubuntu 20.04 (64 bit)

- os/kernel: 3.10.0-1160.76.1.el7.x86_64 (x86_64)

- os/type: linux

- os/arch: amd64

- go/version: go1.20.6

- go/linking: static

- go/tags: none

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

gdrive, dropbox

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

rclone copy gdrive_media_vfs:REDCATED dropbox_crypt:REDACTED -P --check-firs
t --fast-list --transfers 4 --create-empty-src-dirs --drive-acknowledge-abuse --drive-stop-on-upload-limit=true --log-file=moverREDACTED.txt --log-level INFO -
-tpslimit 12 --tpslimit-burst 0 &

i tried running the process in another screen (the programm, not the monitor) but it would not really work after attaching it back again.
redirecting the output to a file > output.log seems kinda rough as it will grow immensely for my copies (they run a day or longer).
rclone web server is unfortunately not available for me.

is there any other implementaton i could use?

Thanks in advance !

Use --log-fle FILE flag

Yes having one logfile growing forever is not very nice solution. But you are on Linux so you can utilize logrotate. You could for example configure it to create new log every specified number of hours/compress old logs/keep only specific number of logs etc.

Note that then you should use the copytruncate option as rclone doesn't have a signal to rotate logs.

Other option is to use programs like tmux or screen to maintain live session even when you close terminal.

Thanks for your response

Use --log-fle FILE flag
the problem with this is, that there is no total progress as in xx GB out of xxx GB transfered logged in these files. It's just a sequential list of all copied files.

i will have a look into logrotate. However as i said before, screen does not work apperently, but i can checkout tmux. thanks !

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