How to copy all files from a folder without recursivity

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
jcdole
DD-WRT Novice


Joined: 13 Jun 2015
Posts: 42
Location: South-West France

PostPosted: Thu Apr 14, 2022 12:13    Post subject: How to copy all files from a folder without recursivity Reply with quote
Hello.
How to copy all files from a folder without recursive from router to local.

I got error with rsync (rsync not found),
and pscp :
Code:
warning: remote host tried to write to a file called 'startup.sh'
         when we requested a file called '*'.
         If this is a wildcard, consider upgrading to SSH-2 or using
         the '-unsafe' option. Renaming of this file has been disallowed.

the command used are :
Code:
rsync -v -a -z root@192.168.130.230:/jffs/  "$DEST_DIR"


Code:
rsync -avP root@192.168.130.230:/jffs/ "$DEST_DIR" -n


Code:
pscp -v -2 -scp -P 11945  -i /root/.ssh/id_rsa.ppk  -l root   root@192.168.130.230:/jffs/*  /backup_sys/TEST_R6300v2/jffs


Code:
pscp -v -2 -sftp -P 11945  -i /root/.ssh/id_rsa.ppk  -l root   root@192.168.130.230:/jffs/*  /backup_sys/TEST_R6300v2/jffs


Router : netgear R6300v2
dd-wrt : DD-WRT v3.0-r47495 std (09/28/21)

Any help is welcome

_________________
Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
Sponsor
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1418

PostPosted: Sat Apr 16, 2022 1:52    Post subject: Reply with quote
Are you on windows or mac or linux?

if you are on the DD-WRT router

scp should be installed and you should be able to do something like (emulating your command)

scp -v -2 -P 11945 -i (/path/to/ssh_id/key) /jffs/* user@remote_system:/backup_sys/TEST_R6300v2/jffs/

rsync -vaz /jffs/ user@remote_system:/backup_sys/TEST_R6300v2/jffs

if you are on your linux machine

scp will not work because it works with regular files (you could sftp in and then get *

rsync -vaz root@(routerip):/jffs/ /backup_sys/TEST_R6300v2/jffs
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum