DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-09-16 21:45:13

zenji2011
Member
Registered: 2011-09-15
Posts: 9

Copy (CP) files from one DNS to another on the command line

Hi. Total noob question; What is the syntax I use to copy (CP) files from one DNS to another on the same LAN?

I can't find the info anywhere.......

Offline

 

#2 2011-09-16 21:57:38

eggeh1982
Member
From: UK
Registered: 2011-03-14
Posts: 8
Website

Re: Copy (CP) files from one DNS to another on the command line

if your other DNS has SSH enabled use the following:

scp -R /mnt/HD_a2/* root@(ipaddress of other DNS):/mnt/HD_a2/

then it will ask for root ssh password

this will copy the contents  accross for extra help google "man scp"

Offline

 

#3 2011-09-16 22:23:57

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Copy (CP) files from one DNS to another on the command line

You can also run the rsync daemon on one and issue an rsync command on the other to copy files over.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#4 2011-09-16 23:50:40

zenji2011
Member
Registered: 2011-09-15
Posts: 9

Re: Copy (CP) files from one DNS to another on the command line

Nice one! Many thanks.

Offline

 

#5 2011-09-17 09:45:11

eggeh1982
Member
From: UK
Registered: 2011-03-14
Posts: 8
Website

Re: Copy (CP) files from one DNS to another on the command line

just make sure when you have scp'd the files across you chmod them all to the correct user and group so you can access them via the samba server

Offline

 

#6 2011-09-20 20:37:47

zenji2011
Member
Registered: 2011-09-15
Posts: 9

Re: Copy (CP) files from one DNS to another on the command line

One other thing, now this all works great - but how do you get SSH connection to not terminate commands in progress when you end the session 'persistence'?

Offline

 

#7 2011-09-20 21:48:26

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: Copy (CP) files from one DNS to another on the command line

screen !

It creates a session which is kept alive to which you can detach and later re-attach.

http://inreto.de/dns323/fun-plug/0.5/pa … .0.3-2.tgz

Last edited by bjby (2011-09-20 21:51:31)

Offline

 

#8 2011-09-20 22:08:17

zenji2011
Member
Registered: 2011-09-15
Posts: 9

Re: Copy (CP) files from one DNS to another on the command line

Thanks! I'll look into that.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB