Community discussions

MikroTik App
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Script for router backup but overwrite older one in files?

Thu Nov 29, 2012 1:18 pm

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
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7168
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script for router backup but overwrite older one in file

Thu Nov 29, 2012 1:21 pm

Before generating new backup tell script to remove old one.

You can use /tool email or fetch to send backup files.
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Thu Nov 29, 2012 1:26 pm

Many thanks will try that
 
User avatar
Maggiore81
Trainer
Trainer
Posts: 581
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Script for router backup but overwrite older one in file

Sun Dec 16, 2012 9:58 pm

Is it possibile to schedule an "export compact" backup to be sent via email / ftp ?
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 12:30 pm

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.
 
VARELA
newbie
Posts: 49
Joined: Mon Jan 14, 2008 12:39 pm

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 12:52 pm

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"
Files with same name overwrites automaticaly.

Or try
/file remove [find type=backup]
before backuping to remove all old backups.
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 1:01 pm

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"
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.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26815
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 1:06 pm

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 ...
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 4:46 pm

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?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7168
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 4:59 pm

They will not be able to see login passwords directly, but they are stored in backup files.
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 5:25 pm

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?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7168
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 5:27 pm

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

It applies only to .backup files.
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Script for router backup but overwrite older one in file

Mon Dec 17, 2012 5:32 pm

Thank you and it is good to read login passwords does not apply to *.rsc file
 
BuffPuff
just joined
Posts: 2
Joined: Tue Dec 18, 2012 10:47 am

Re: Script for router backup but overwrite older one in file

Tue Dec 18, 2012 11:42 am

test, please discard.

Who is online

Users browsing this forum: No registered users and 18 guests