FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
727 views 0 comments
by anonymous

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 anonymous

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.