Backup naming options and portnum for Tera Term
Added a --format
option to backup with some substitution variables: {timestamp}
, {device}
(name), {drive}
, and {serial}
(number).
discotool backup --format "{timestamp}-{device}_{drive}_{serial}" ~/Backups
# eg: 20211216-104150-Trinket_M0_CIRCUITPY_123456789ABCDEF
Added a {portnum}
substitution variable for the serialtool parameter (DISCOTOOL_SERIALTOOL
).
Using teraterm on Windows (doesn't use COM# but just the number).
setx DISCOTOOL_SERIALTOOL "tterpro.exe /C={portnum}"