Au fost ceva probleme cu cheile intre servere si deaceea nu a functionat
scp.Curios a fost ca nu imi dadea nici o eroare.
find / -name *alrm1p* -exec scp {} [email protected]:/media/250GB/alrm1p \;
Multumesc pentru ajutor !
-----------------------------------------------------------
Catalin Vasilescu
________________________________
From: "[email protected]" <[email protected]>
To: [email protected]
Sent: Wednesday, October 17, 2012 12:00 PM
Subject: RLUG Digest, Vol 87, Issue 6
Send RLUG mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.lug.ro/mailman/listinfo/rlug
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of RLUG digest..."
Today's Topics:
1. find and copy files to remote server (Catalin Vasilescu)
2. Re: find and copy files to remote server (Petru Ratiu)
3. Re: find and copy files to remote server (Florin Samareanu)
4. Re: find and copy files to remote server
(manuel "lonely wolf" wolfshant)
5. Re: find and copy files to remote server
(manuel "lonely wolf" wolfshant)
6. Re: find and copy files to remote server (Victor Buciuc)
7. Re: find and copy files to remote server (Vali Dragnuta)
8. Re: find and copy files to remote server (Florin Samareanu)
----------------------------------------------------------------------
Message: 1
Date: Tue, 16 Oct 2012 08:09:31 -0700 (PDT)
From: Catalin Vasilescu <[email protected]>
Subject: [rlug] find and copy files to remote server
To: "[email protected]" <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=us-ascii
Salut,
Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia pe
acelasi server intr-un director definit folosesc:
find / -name *CMP* -exec cp {} /var/www/test \;
Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de spatiu.
Cu ce as putea inlocui cp? cu scp nu functioneaza.
------------------------------
Message: 2
Date: Tue, 16 Oct 2012 18:14:31 +0300
From: Petru Ratiu <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: Catalin Vasilescu <[email protected]>, Romanian Linux
Users Group <[email protected]>
Message-ID:
<cafnpagmbtqhzcbaq8v44evgknabr4it1lj3blgap5brdl3h...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
2012/10/16 Catalin Vasilescu <[email protected]>:
> Salut,
>
> Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia
> pe acelasi server intr-un director definit folosesc:
>
> find / -name *CMP* -exec cp {} /var/www/test \;
> Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de
> spatiu.
>
> Cu ce as putea inlocui cp? cu scp nu functioneaza.
rsync --include='*CMP*' remote:/bla nu e bine?
--
Petre.
------------------------------
Message: 3
Date: Tue, 16 Oct 2012 15:19:16 +0000
From: "Florin Samareanu" <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: "Romanian Linux Users Group" <[email protected]>
Message-ID:
<577070495-1350400631-cardhu_decombobulator_blackberry.rim.net-1862633641-@b15.c13.bise7.blackberry>
Content-Type: text/plain; charset="utf-8"
Sau incearca varianta csync2 cu sau fara lsyncd pentru sincronizare
passwordless.
Florin
Empower your Business with BlackBerry? and Mobile Solutions from Etisalat
-----Original Message-----
From: Petru Ratiu <[email protected]>
Sender: [email protected]
Date: Tue, 16 Oct 2012 18:14:31
To: Catalin Vasilescu<[email protected]>; Romanian Linux Users
Group<[email protected]>
Reply-To: Romanian Linux Users Group <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
2012/10/16 Catalin Vasilescu <[email protected]>:
> Salut,
>
> Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia
> pe acelasi server intr-un director definit folosesc:
>
> find / -name *CMP* -exec cp {} /var/www/test \;
> Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de
> spatiu.
>
> Cu ce as putea inlocui cp? cu scp nu functioneaza.
rsync --include='*CMP*' remote:/bla nu e bine?
--
Petre.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug
------------------------------
Message: 4
Date: Tue, 16 Oct 2012 18:19:07 +0300
From: "manuel \"lonely wolf\" wolfshant" <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: Romanian Linux Users Group <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 10/16/2012 06:09 PM, Catalin Vasilescu wrote:
> Salut,
>
> Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia
> pe acelasi server intr-un director definit folosesc:
>
> find / -name *CMP* -exec cp {} /var/www/test \;
> Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de
> spatiu.
>
> Cu ce as putea inlocui cp? cu scp nu functioneaza.
ba functioneaza cind e corect folosit. incepe prin a aranja sa mearga
scp -b ( autentificare cu cheie; ai grija sa rulezi o data de mina ca sa
aduca local cheia RSA a serverului ). in final o sa ajungi probabil la
ceva de genul:
/usr/bin/scp -B -i /path/to/identity_file {} remote_user@$server:/path
------------------------------
Message: 5
Date: Tue, 16 Oct 2012 18:20:09 +0300
From: "manuel \"lonely wolf\" wolfshant" <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: Romanian Linux Users Group <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 10/16/2012 06:19 PM, manuel "lonely wolf" wolfshant wrote:
> On 10/16/2012 06:09 PM, Catalin Vasilescu wrote:
>> Salut,
>>
>> Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia
>> pe acelasi server intr-un director definit folosesc:
>>
>> find / -name *CMP* -exec cp {} /var/www/test \;
>> Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de
>> spatiu.
>>
>> Cu ce as putea inlocui cp? cu scp nu functioneaza.
> ba functioneaza cind e corect folosit. incepe prin a aranja sa mearga
> scp -b
scp -Bemare nu bemic !
sorry
------------------------------
Message: 6
Date: Tue, 16 Oct 2012 18:39:23 +0300
From: Victor Buciuc <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: Catalin Vasilescu <[email protected]>, Romanian Linux
Users Group <[email protected]>
Message-ID:
<CAKop=LiiKn=1VscT=ndchuunjkulphmvkne1xon4yur3fhw...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Oct 16, 2012 6:09 PM, "Catalin Vasilescu"
<[email protected]> wrote:
>
> Salut,
>
> Vreau sa copiez fisierele gasite cu find pe un alt server .Pentru a le copia
> pe acelasi server intr-un director definit folosesc:
>
> find / -name *CMP* -exec cp {} /var/www/test \;
> Ideea este ca nu vreau sa stochez dubluri pe acelasi server din lipsa de
> spatiu.
>
> Cu ce as putea inlocui cp? cu scp nu functioneaza.
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
De dragul exercitiului folosind netcat si tar (daca chiar nu merge
scp, ftp, sa montezi un nfs, sau alte solutii):
Setup:
Intr-o parte avem:
vibu@item-56156 ~/test $ find . -name "*TMP*"
./1/TMP.2
./TMP.1
vibu@item-56156 ~/test $ cat TMP.1
1234578
vibu@item-56156 ~/test $ cat 1/TMP.2
blablablabla
Pe "celalalt"(la mine e alt director) server facem:
vibu@item-56156 ~/test1 $ nc -l 1234 > copy.tar
(tot ce primeste pe 1234 scrie in copy.tar)
Ne intoarcem si rulam scriptul:
vibu@item-56156 ~/test $ find . -name "*TMP*" | xargs tar -cvf - | nc
localhost 1234
./1/TMP.2
./TMP.1
tar -cvf - pune totul intr-un tar si scoate la stdout
nc localhost 1234 scrie tot catre localhost pe portul 1234
Si am obtinut:
vibu@item-56156 ~/test1 $ tar -xvf copy.tar
./1/TMP.2
./TMP.1
vibu@item-56156 ~/test1 $ cat ./1/TMP.2
blablablabla
vibu@item-56156 ~/test1 $ cat ./TMP.1
1234578
TADAAAAAAAAAA,
Victor
------------------------------
Message: 7
Date: Tue, 16 Oct 2012 18:40:36 +0300
From: Vali Dragnuta <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: [email protected], Romanian Linux Users Group
<[email protected]>
Message-ID: <1350402036.2544.55.camel@v4>
Content-Type: text/plain
Si rsync merge passwordless cu niste chei ssh bine alese :)
------------------------------
Message: 8
Date: Wed, 17 Oct 2012 09:58:11 +0400
From: Florin Samareanu <[email protected]>
Subject: Re: [rlug] find and copy files to remote server
To: Vali Dragnuta <[email protected]>
Cc: Romanian Linux Users Group <[email protected]>
Message-ID:
<cafmndywbpgkz0cypvw5q36y0tanfhrbmmg8rhtlni+txp0o...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
2012/10/16 Vali Dragnuta <[email protected]>
> Si rsync merge passwordless cu niste chei ssh bine alese :)
>
>
>
Depinzand de necesitati eu as incerca si lsyncd + csync2 (cam ca aici,
mura-n gura: *http://tinyurl.com/8km3e8u *)
------------------------------
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug
End of RLUG Digest, Vol 87, Issue 6
***********************************
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug