Community discussions

MikroTik App
 
User avatar
CZFan
Forum Guru
Forum Guru
Topic Author
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Writing backup file to flash

Sun Aug 12, 2018 1:10 pm

Hi,

I am trying to get the script below to do auto backups, but must write to the flash folder else it gets deleted on reboot but it keeps writing the file to the root
export file=(flash/([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date
] 0 3] . [:pick [/system clock get date] 4 6])) verbose; :delay 5;
 
User avatar
CZFan
Forum Guru
Forum Guru
Topic Author
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Writing backup file to flash  [SOLVED]

Sun Aug 12, 2018 2:26 pm

Not sure if it is the correct / best way, but got it working
export file=("flash/".([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6])) verbose; :delay 5;

Who is online

Users browsing this forum: GoogleOther [Bot], SerhiiH and 23 guests