Script for router backup but overwrite older one in files?

Hi can i have help with a script for router backup, If i could automate with scheduler say
/export file=backupAP1

But can the script overwrite the older backup in “files”

Also can another backup script be forwarded to a IP location say 192.168.1.1 or emailed

Before generating new backup tell script to remove old one.

You can use /tool email or fetch to send backup files.

Many thanks will try that

Is it possibile to schedule an “export compact” backup to be sent via email / ftp ?

Yes very easy to do, I have a script scheduled to delete the existing backup file then it runs /export command and finally runs /tool email , I then have a upto date export file on the router and also emailed.

Files with same name overwrites automaticaly.

Or try

/file remove [find type=backup]

before backuping to remove all old backups.

Must test overwriting file with same name.

Don’t keep any backup files on the router. They contain your passwords, which can be read from the file. If somebody should gain access to your router …

If they gain access to router they can view wireless & pppoe, etc. passwords but can they view router login password?

They will not be able to see login passwords directly, but they are stored in backup files.

Just to clarify, this applies to *.rsc files also is it possible to password protect these files?

/export command is not exporting usernames passwords, so rsc files do not have sensitive information.

It applies only to .backup files.

Thank you and it is good to read login passwords does not apply to *.rsc file

test, please discard.