I've just converted all of my storage from Solaris systems to TrueNas.
I should say I am a complete UNIX/Linux newbie, and survive by mimicking other's scripts.
All is well, except my main backup script has a gnu date call that BSD can't process. I have 10 years of snapshots using this naming scheme and I'd prefer to get the script working rather than renaming everything on multiple pools.
I've attached the form script (ip addresses and pool names deleted) for review. The offending line is #19:
yesterday=`/usr/gnu/bin/date -d"yesterday" +"$type-%Y-%m-%d"`
BSD can't process the /usr/gnu/date portion. Is there a BSD equivalent? I've thought about adding gnu date to TrueNas, but folks seem to advise against adding packages to the base system.
Any suggestions are welcome.
I should say I am a complete UNIX/Linux newbie, and survive by mimicking other's scripts.
All is well, except my main backup script has a gnu date call that BSD can't process. I have 10 years of snapshots using this naming scheme and I'd prefer to get the script working rather than renaming everything on multiple pools.
I've attached the form script (ip addresses and pool names deleted) for review. The offending line is #19:
yesterday=`/usr/gnu/bin/date -d"yesterday" +"$type-%Y-%m-%d"`
BSD can't process the /usr/gnu/date portion. Is there a BSD equivalent? I've thought about adding gnu date to TrueNas, but folks seem to advise against adding packages to the base system.
Any suggestions are welcome.