I have "Backup" DejaDup app backing up my home folder to an encrypted external USB hard drive, but it takes hours. The GUI's "backup now" button is grayed out, indicating it's running, and Gnome says "starting scheduled backup". However, I have no idea how long it should take. Is there anyway to get progress info from DejaDup?
Top shows that the duplicity process is running with the option --log-fd=16
. Duplicity's manpage indicates that this is the file descriptor of the log file it writes status updates to. However, if I run tail -f 16
, I get the error tail: no files remaining
. How do I read this log file descriptor?
I think you can monitor it like this:
using ps, get the PID and the log fd, e.g.
The PID is 12345, and the file descriptor is 18.
Then go to
/proc/PID/fd (/proc/12345/fd)
and instead of trying to tail the file descriptor 18, use cat or grep.This shows way too much info for me. 90% of it are my exclude globs.
works well for seeing which file is being examined. If you look at the output, you can also focus on when it finds files match (and don't need backing up) or when they're different.
Based on the solution provided by @RichardSchwarting I created the following command that checks if the process is running an does the cat on
/proc/x/fd/y
:I enhanced the answer by Richard. https://askubuntu.com/a/952872/359904
Reference: https://stackoverflow.com/questions/17462659/search-for-a-string-and-print-next-to-that-using-sed-awk