0

I know that is a popular subject but I can not find the right solution for my problem. On my pc I use scp and ssh with OpenWrt firmware, usually I use Debian or linux mint without any problem, but I did a fresh install and I got problem now with my firmware config back up. Here what I use since 2 years without any problem.

# openwrt_backup # Create tar_main ssh [email protected] sysupgrade -b /tmp/backup-main-$(date +%F).tar.gz # Copy to local dir scp -O [email protected]:/tmp/backup-*.tar.gz james@ninja:/run/media/james/E/openWrt_backup/ 

The problem is right now that after the second command, transfert the backup to my local pc, nothing happens:

james@ninja:~> scp -O [email protected]:/tmp/backup-*.tar.gz james@ninja:/run/media/james/E/openWrt_backup/ james@ninja:~> # empty answer?? 

Idea? thanks

6
  • Why do you use james@ninja for the local system? What is the output of scp -v -O '[email protected]:/tmp/backup-*.tar.gz' /run/media/james/E/openWrt_backup/ Commented Feb 14 at 16:19
  • @HaukeLaging I added the output on my main post (edited) Commented Feb 14 at 16:33
  • So I guess that solved the problem. Commented Feb 14 at 16:36
  • solved, you're right?? I use j'ames@ninja' cause I need to scp to my pc.... Commented Feb 14 at 16:38
  • 1
    The output shows that the file has been copied. Why would you scp into the same user on the same system? Does not make sense. Commented Feb 14 at 16:40

1 Answer 1

2
  • Wildcards for an application (instead of for the shell) should always be quoted.
  • Avoid user@host for a local path.
scp -O '[email protected]:/tmp/backup-*.tar.gz' /run/media/james/E/openWrt_backup/ 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.