Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-09-2013, 02:08 PM
|
#1
|
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 191
Rep:
|
copy whole filesystem via scp ?
Hello!
Today i try to copy a whole filesystem from old server to directory of new with command like scp -r -s -v 192.168.1.1:/ /second/Old_server
but it stops after another time with last lines like copy TtyS ?
i try to copy another ( data_ disk ) with that manner and too have a stop. i think, it try copy directory like a /lost+found and stuck there. it be can copy whole system on scp? if i remember xorrectly, cp -ax have do it, it has some similar for scp? search over google, not see a solution...
|
|
|
|
02-09-2013, 02:19 PM
|
#2
|
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 603
|
The problem is that scp won't handle special files like devices. But something like this will do the trick:
ssh root@192.168.1.1 "(cd / ; tar cf - . )" | (mkdir -p /second/Old_server ; cd /second/Old_server ; tar xvf -)
|
|
|
2 members found this post helpful.
|
02-09-2013, 02:21 PM
|
#3
|
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 191
Original Poster
Rep:
|
thanks,ill try it tommorow 
P.S. and thanks for the slackware - i use it from 4.0, mainly for routers \ servers, but also a 3-4 years also as only desktop system too  some time i use mandriva / mandrake for desktop, but it's "microsoft way" with glucks, and strange things bored me 
Last edited by WiseDraco; 02-09-2013 at 02:26 PM.
|
|
|
|
02-09-2013, 05:37 PM
|
#4
|
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 603
|
A quick addendum -- you might have to set umask 000 on the receiving end to avoid filtering perms on /tmp and certain files that might be writable by a group. Here's a fixed command line:
ssh root@192.168.1.1 "(cd / ; tar cf - . )" | (mkdir -p /second/Old_server ; cd /second/Old_server ; umask 000 ; tar xvf -)
|
|
|
2 members found this post helpful.
|
02-10-2013, 03:25 AM
|
#5
|
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 191
Original Poster
Rep:
|
Thank you very much! looks like working - in that moment files copying, and some hours continued this state * ~250 Gb  )
with your permission, i want to put that command somewhere in slackware docs ( docs.slackware.com), for others, and even me can find this command when it need next time 
|
|
|
|
02-10-2013, 03:56 AM
|
#6
|
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 603
|
Quote:
Originally Posted by WiseDraco
Thank you very much! looks like working - in that moment files copying, and some hours continued this state * ~250 Gb  )
with your permission, i want to put that command somewhere in slackware docs ( docs.slackware.com), for others, and even me can find this command when it need next time 
|
Absolutely. Be my guest.
|
|
|
|
02-10-2013, 05:03 AM
|
#7
|
|
Member
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 773
|
Quote:
Originally Posted by WiseDraco
Hello!
Today i try to copy a whole filesystem from old server to directory of new with command like scp -r -s -v 192.168.1.1:/ /second/Old_server
but it stops after another time with last lines like copy TtyS ?
i try to copy another ( data_ disk ) with that manner and too have a stop. i think, it try copy directory like a /lost+found and stuck there. it be can copy whole system on scp? if i remember xorrectly, cp -ax have do it, it has some similar for scp? search over google, not see a solution...
|
I'm not sure if this is exactly what you need, but you might want to have a look at this:
http://sourceforge.net/projects/g4l/
I'm using it in conjunction with a local FTP server. Works great.
|
|
|
|
02-10-2013, 05:15 AM
|
#8
|
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 191
Original Poster
Rep:
|
Quote:
Originally Posted by kikinovak
I'm not sure if this is exactly what you need, but you might want to have a look at this:
http://sourceforge.net/projects/g4l/
I'm using it in conjunction with a local FTP server. Works great.
|
looks, it is not i want in this case. for backup i some years ago in few places used a backuppc solution - very good, imho.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|