On 19 Sep 2024, Floris van Unen said the following...
and the archiver.sh script is
===
#!/bin/bash
Y=`date '+%Y'`
W=`date '+%V'`
B=`basename $1`
L=/path/to/archive/$Y/$W
mkdir -p $L
cp -vf $1 $L/$2_$B
===
Thanks for this.
This worked well for my IPv4 nodes but not for the IPv6 ones. I made a modification that uses their first AKA instead:
In binkd.conf:
exec "!/path/to/archiver.sh *F *A0" *
===
#!/bin/bash
Y=`date '+%Y'`
W=`date '+%V'`
B=`basename $1`
L=/path/to/archive/$Y/$W
N=`echo $2 | tr ":/@." "----"`
mkdir -p $L
cp -vf $1 $L/$N\_$B
===
This will name the files like this:
1-229-426-fidonet_41801563.PKT
21-3-0-fsxnet_0008a828.pkt
618-618-1-micronet_00DA0000.TH6
Jay
... Dachshunds are really small crocodiles with fur
--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
* Origin: Northern Realms (1:229/664)