[arm-allstar] How difficult would it be to maybe add this feature to a future update to the audio archive feature?
kd4ont at gmail.com
Fri Jan 5 22:52:42 EST 2018
This looks a bit over my skill level at the moment. I'll have to look at a
beginner's scripting book to have it show me what's going on instead of
blindly copying code. I could practice on my linux laptop I guess for now,
until I can begin to understand it better.
On Jan 5, 2018 10:36 PM, Doug Crompton via arm-allstar <
arm-allstar at hamvoip.org> wrote:
> I did some testing of my hypothesis that I sent earlier and it needed some
> massaging. This works -
> rsync -Ravm --remove-source-files --include=`date -d "yesterday"
> +%Y%m%d*.wav` --exclude '*' . `date -d "yesterday" +node-archive-%Y%m%d`
> So if you had the files -
> 20180104_1.wav 20180104_2.txt 20180104_2.wav
> In the directory this was run in it would create the directory
> with the contents -
> ls node-archive-20180105/
> 20180105_1.wav 20180105_2.wav
> This assumes the current date is 20180106. It further assumes the files you
> are archiving have the date first then some text with a .wav extent. This
> can be changed in the rsync line if necessary as can the name of the
> archive directory. This example removes the source files after copying to
> the destination directory. If you want to keep them remove the
> --remove-source-files directive.
> I suggest you create a test directory populate it with some file that have
> the names and correct dates of the files you want to archive and test run
> this. You can create dummy files like this:
> cd /
> mkdir test
> cd test
> Remember the date has to be yesterday. Then run the rsync line. It should
> create the archive in the same directory and delete the source files you
> Once you get this working you could run it with a cron job daily to archive
> yesterdays files.
> Again if you need help with this let me know.
> *73 Doug*
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> On Fri, Jan 5, 2018 at 3:35 AM, "Terry Bethlehem via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
> > For me, I'd like a feature that creates a folder, on your external drive,
> > each day, with its contents. Say for example, at midnight, the pi
> creates a
> > folder named 20180105, and dumps all the audio files in it. When the next
> > day comes, it creates a new folder then dumps the files in the new
> > I don't know how many people that actually use this feature, would really
> > like this or don't care. I archive all the files, to my pc, when my node
> > offline for the day. I create folders with the date. I scroll through
> > thousands of files, for a single day, to move them to the appropriate
> > folder I created on my pc. Automating this would be awesome for me. I
> > know how many agree with my suggestion. I also know you guys have other
> > things you're trying to improve and implement.
> > Any input is appreciated. I'm just wishing for a little bit of automated
> > housekeeping, instead of plowing through thousands of wav files, trying
> > find what I'm looking for. I'm not a scripter yet.
> > _______________________________________________
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the arm-allstar