Last active
March 31, 2020 18:26
-
-
Save asmattic/0123ae30aa72930e223fad956e10306a to your computer and use it in GitHub Desktop.
Check Ubuntu backup progress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pid=$(pgrep -n duplicity); if [ $pid ]; then fd=$( ps -o cmd --no-headers $pid | sed -E 's/.+(log-fd=[0-9]+).?/\1/' | cut -f2 -d =); if [ $fd ]; then cat /proc/$pid/fd/$fd; else echo "fd not found"; fi else echo "pid not found"; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment