rename script upload-backup -> backup-upload

This commit is contained in:
Christian Hesse 2022-01-05 22:37:55 +01:00
parent 95b17ab9a1
commit e77b39e933
9 changed files with 184 additions and 181 deletions

View file

@ -47,7 +47,7 @@ See also
--------
* [Send backup via e-mail](backup-email.md)
* [Upload backup to server](upload-backup.md)
* [Upload backup to server](backup-upload.md)
---
[◀ Go back to main README](../README.md)

View file

@ -47,7 +47,7 @@ See also
--------
* [Upload backup to Mikrotik cloud](backup-cloud.md)
* [Upload backup to server](upload-backup.md)
* [Upload backup to server](backup-upload.md)
---
[◀ Go back to main README](../README.md)

View file

@ -6,7 +6,7 @@
version="1.1"
id="svg8"
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)"
sodipodi:docname="upload-backup.svg"
sodipodi:docname="backup-upload.svg"
inkscape:export-filename="logo.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Before After
Before After

70
doc/backup-upload.md Normal file
View file

@ -0,0 +1,70 @@
Upload backup to server
=======================
[◀ Go back to main README](../README.md)
🛈 This script can not be used on its own but requires the base installation.
See [main README](../README.md) for details.
Description
-----------
This script uploads binary backup (`/ system backup save`) and complete
configuration export (`/ export terse`) to external server.
### Sample notification
![backup-upload notification](backup-upload.d/notification.svg)
Requirements and installation
-----------------------------
Just install the script:
$ScriptInstallUpdate backup-upload;
Configuration
-------------
The configuration goes to `global-config-overlay`, these are the parameters:
* `BackupSendBinary`: whether to send binary backup
* `BackupSendExport`: whether to send configuration export
* `BackupPassword`: password to encrypt the backup with
* `BackupRandomDelay`: delay up to amount of seconds when run from scheduler
* `BackupUploadUrl`: url to upload to
* `BackupUploadUser`: username for server authentication
* `BackupUploadPass`: password for server authentication
Also notification settings are required for e-mail, matrix and/or telegram.
### Issues with SFTP client
The RouterOS SFTP client is picky if it comes to authentication methods.
I had to disable all but password authentication on server side. For openssh
edit `/etc/ssh/sshd_config` and add a directive like this, changed for your
needs:
Match User mikrotik
AuthenticationMethods password
Usage and invocation
--------------------
Just run the script:
/ system script run backup-upload;
Creating a scheduler may be an option:
/ system scheduler add interval=1w name=backup-upload on-event="/ system script run backup-upload;" start-time=09:25:00;
See also
--------
* [Send backup via e-mail](backup-email.md)
* [Upload backup to Mikrotik cloud](backup-cloud.md)
---
[◀ Go back to main README](../README.md)
[▲ Go back to top](#top)

View file

@ -17,7 +17,7 @@ verification.
But it provides some extra functionality:
* send backup via e-mail if [backup-email](backup-email.md) is installed
* upload backup if [upload-backup](upload-backup.md) is installed
* upload backup if [backup-upload](backup-upload.md) is installed
* schedule reboot at night
Requirements and installation
@ -42,7 +42,7 @@ See also
* [Notify on RouterOS update](check-routeros-update.md)
* [Send backup via e-mail](backup-email.md)
* [Upload backup to server](upload-backup.md)
* [Upload backup to server](backup-upload.md)
---
[◀ Go back to main README](../README.md)

View file

@ -1,70 +1 @@
Upload backup to server
=======================
[◀ Go back to main README](../README.md)
🛈 This script can not be used on its own but requires the base installation.
See [main README](../README.md) for details.
Description
-----------
This script uploads binary backup (`/ system backup save`) and complete
configuration export (`/ export terse`) to external server.
### Sample notification
![upload-backup notification](upload-backup.d/notification.svg)
Requirements and installation
-----------------------------
Just install the script:
$ScriptInstallUpdate upload-backup;
Configuration
-------------
The configuration goes to `global-config-overlay`, these are the parameters:
* `BackupSendBinary`: whether to send binary backup
* `BackupSendExport`: whether to send configuration export
* `BackupPassword`: password to encrypt the backup with
* `BackupRandomDelay`: delay up to amount of seconds when run from scheduler
* `BackupUploadUrl`: url to upload to
* `BackupUploadUser`: username for server authentication
* `BackupUploadPass`: password for server authentication
Also notification settings are required for e-mail, matrix and/or telegram.
### Issues with SFTP client
The RouterOS SFTP client is picky if it comes to authentication methods.
I had to disable all but password authentication on server side. For openssh
edit `/etc/ssh/sshd_config` and add a directive like this, changed for your
needs:
Match User mikrotik
AuthenticationMethods password
Usage and invocation
--------------------
Just run the script:
/ system script run upload-backup;
Creating a scheduler may be an option:
/ system scheduler add interval=1w name=upload-backup on-event="/ system script run upload-backup;" start-time=09:25:00;
See also
--------
* [Send backup via e-mail](backup-email.md)
* [Upload backup to Mikrotik cloud](backup-cloud.md)
---
[◀ Go back to main README](../README.md)
[▲ Go back to top](#top)
This script has been renamed. Please see [backup-upload](backup-upload.md).