8298 questions

9759 answers

15542 comments

13863 members

0 votes
24 views 0 comments
by

Hello,

first my english is not that good sry for that.

What i want to do:

i have an *.tar.gz file on my local computer and wanna upload this on my RUT950 via SSH and then wanna Restore this config file on the 950 via ssh. Can anyone help me? I have already found this but i dont get through in where is the backup file on my PC after the first command and how could i replace this with that one i want?:

Back up OpenWrt configuration to local PC.

# Generate backup
umask go=
sysupgrade -b /tmp/backup-${HOSTNAME}-$(date +%F).tar.gz
ls /tmp/backup-*.tar.gz
 
# Download backup
scp root@openwrt.lan:/tmp/backup-*.tar.gz .

Restore previously saved OpenWrt configuration from local PC.

# Upload backup
scp backup-*.tar.gz root@openwrt.lan:/tmp
 
# Restore backup
ls /tmp/backup-*.tar.gz
sysupgrade -r /tmp/backup-*.tar.gz

1 Answer

0 votes
by

Hello,

In order to upgrade your firmware via the command line, please follow this guide which explains everything in-depth: https://wiki.teltonika-networks.com/view/Firmware_upgrade_via_command_line

Everything that is written about firmware upgrade via command line, applies to backup too as it uses the same sysupgrade command to upload configuration.

Regards.