Hello! I’m trying to modify the script in this post: http://forum.mikrotik.com/t/generate-backup-and-rsc-based-on-router-name-date-time/100356/1 everything works fine, I just want the backups to be saved in a different location
I will appreciate your help
:log info "STARTING BACKUP";
:global filename;
:global date [/system clock get date];
:global time [/system clock get time];
:global name [/system identity get name];
:global months ("jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec");
:global hour [:pick $time 0 2];
:global min [:pick $time 3 5];
:global sec [:pick $time 6 8];
:global month [:pick $date 0 3];
:set month ([ :find $months $month -1 ] + 1);
:if ($month < 10) do={ :set month ("0" . $month); }
:global day [:pick $date 4 6];
:global year [:pick $date 7 11];
:set filename ($name. "-" .$year."-".$month."-".$day."-".$hour.$min.$sec);
/system backup save name=$filename;
:log info "DELAY 3S"
:delay 3s;
:log info "GENERATING RSC";
:global rsc $filename;
/export file=$rsc;
:log info "BACKUP FINISHED"
