FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12072 questions

14366 answers

22636 comments

36189 members

0 votes
179 views 1 comments
by

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

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
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-