Originally Posted by
NertSkull
So over the past couple of months I've slowly been figuring out Duplicity backups in my spare time. They are really quite impressive and I would recommend it to anyone.
Me too.
Originally Posted by
NertSkull
When Duplicity runs, it gives very minimal output of what it is doing. I have my backups being uploaded to a remote server and I would love to see a progress bar or at least get some sense of how much has completed.
Ditto. The {simple,kludgey} way I'm currently getting feedback is with the option
the syntax for which is
http://duplicity.nongnu.org/duplicity.1.html#sect5
> -vverb, --verbosity verb
> Specify verbosity level (0 is total silent, 4 is the default, and 9 is noisiest).
> Verbosity may also be one of: character ewnid, or
> word error, warning, notice, info, debug. The default is 4 (Notice).
> The options -v4, -vn, and -vnotice are functionally equivalent, as are
> the mixed/upper-case versions, -vN, -vNotice, and -vNOTICE.
I can then use that in scripts like
Code:
LOGGING_OPTIONS="--verbosity info" # default==notice, "verbosity [may] be one of[:] error, warning, notice, info, debug"
BACKUP_OPTIONS="--full-if-older-than ${FULL_OLDER_THAN}"
...
DUPLICITY_BACKUP_CMD="duplicity ${LOGGING_OPTIONS} ${BACKUP_OPTIONS} ${SOURCE_DIR} ${DUPLICITY_TARGET_DIR}"
...
function backup {
for CMD in \
"${DUPLICITY_BACKUP_CMD}" \
"${DUPLICITY_PRUNE_CMD} \
; do
if [[ -z "${CMD}" ]] ; then
continue
fi
echo -e "${CMD}" | tee -a "${LOCAL_LOGFILE_PATH}"
if [[ "${EVAL}" -eq "${DO_EVAL}" ]] ; then
eval "${CMD}" 2>&1 >> "${LOCAL_LOGFILE_PATH}"
fi
done
}
That seems to be basically passing along the rsync messages, e.g. recording which files/folders are examined. It produces logfile lines like (excerpt)
A .
A Google
A Google/GECommonSettings.conf
A Google/GoogleEarthPlus.conf
A TouchFreeze.conf
A Trolltech.conf
A autostart
A autostart/bluetooth-applet.desktop
A autostart/deja-dup-monitor.desktop
A autostart/evolution-alarm-notify.desktop
A autostart/gnome-terminal.desktop
I can then tail the log while duplicity is running to see where duplicity is in the file tree: better than nothing.
Originally Posted by
NertSkull
would love to have it just tell me something like 30% complete, or 35 of 3200 files complete or something along those lines.
Me too.
Originally Posted by
NertSkull
That module looks like it's providing the --verbosity functionality above, but that's not really what you want.
Bookmarks