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
433 views 1 comments
by anonymous

Hi,

For sure I found this topics talking of same subject, and it reply to a part of my search, but I really dont reach to download the file after create it.

https://openwrt.org/docs/guide-user/troubleshooting/backup_restore

# Generate backup

umask go=

sysupgrade -b /tmp/backup-${HOSTNAME}-$(date +%F).tar.gz

ls /tmp/backup-*.tar.gz

 I reach to successfully create the config :

See SCREENS

# Download backup

scp root@openwrt.lan:/tmp/backup-*.tar.gz

See SCREENS

I try with the name of the created archive :

scp root@openwrt.lan:/tmp/backup-Teltonika-RUT950.com-2022-04-17.tar.gz

See SCREENS

I suppose that in this case, the usage will be [[user@host…..

My Laptop hostname :

See SCREENS

So trying :

scp root@STA-EV.lan:/tmp/backup-Teltonika-RUT950.com-2022-04-17.tar.gz

See SCREENS

My laptop working on windows so trying on C : folder

scp root@STA-EV.lan:/c:/backup-Teltonika-RUT950.com-2022-04-17.tar.gz

See SCREENS

Can you please let me know about where is my error ?

How to save the created file on c: for example ?

(The screens are in the Enclosed PDF File)

Many thanks in advance.

EV-

1 Answer

0 votes
by anonymous

Hello, 

As I understand, you want to download a generated backup file from the router to your PC. In order to so, you can download an application called WinSCP: https://winscp.net/download/WinSCP-5.19.6-Setup.exe. It will make file transfer between the router and PC easier and faster.

However, if CLI is your option, connect the router to the PC via ethernet cable. Open Command prompt (cmd) in Windows and enter this command:

scp root@<router's_LAN_IP(default 192.168.1.1)>:/tmp/backup-Teltonika-RUT950.com-2022-04-17.tar.gz C:\<your desired directory>

It will download the backup file from the router to the C:\<your_desired_directory>.

More information about file transfer is provided in this link: https://wiki.teltonika-networks.com/view/Upload_%26_Download_Files_from_RutOS.

Best regards,

Žygimantas

Best answer
by anonymous
Hi,

Many thanks for your answer Žygimantas.

In fact, I found the WinSCP solution to download it, but this process will be implemented for an automatic operation on a lot of site so better solution is the scp command.

I saw my error on your message, I try to connect with public IP but i can use the local IP from where i was connected.

By the end I reach to download making directly the SCP command from another network and by the public IP.

In any case, I want to really thank you for your prompt reply and support.

I hope that this topic help someone more.

EV-