Community discussions

 
User avatar
CZFan
Forum Guru
Forum Guru
Topic Author
Posts: 1045
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa
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;
MTCNA, MTCTCE, MTCRE & MTCINE
 
User avatar
CZFan
Forum Guru
Forum Guru
Topic Author
Posts: 1045
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa
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;
MTCNA, MTCTCE, MTCRE & MTCINE

Who is online

Users browsing this forum: No registered users and 7 guests