I have written script for automated backup of mikrotik every day, last time I have added to command /export file="filename" also terse and verbose and it is throwing syntax error. I am sending you code in bash and specific code, which makes mess. On terminal in ROS this command work perfectly.
I also tried some debugging, with keyword verbose export is working but with keyword terse not. Can you help me please? Code is below.
Code: Select all
ssh $user@$address ':local name [/system identity get name];:local date [/system clock get date];:local day [ :pick $date 4 6 ];:local month [ :pick $date 0 3 ];:local backupName ($name."_".$month.$day."export");:put $backupName;/export file=$backupName verbose terse'