LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2003, 03:20 PM   #1
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Rep: Reputation: 38
scp Good arugments?


I need to back up an entire OS (not so much for the OS but for all the user-made data that consists of conf files and all that (/usr/home is mounted via NFS so that doesn't need backing up)

and I was wondering what you guys thought about this.

Basically move EVERYTHING within System A's / to a folder on System B's drive (like /root/sys1backup/*)


i will be using scp with the following arugment;

-pvrC

p tp preserve rights
v verbose
r recursive (there are a LOT fo directories)
C compress the connection

Now, direcotires like /proc are probably useless hey? is there a way to excldue them (if it's not safe to copy it) or is it fine to copy all these files?

What are your thoughts?
 
Old 10-21-2003, 03:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Personally I would forget scp and use rsync over ssh. Then you don't need to copy files that haven't changed. You can also incldue/exclude directories as you like.
 
Old 10-21-2003, 03:36 PM   #3
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Original Poster
Rep: Reputation: 38
even if this was to be a one-time-only transfer?


good point tho. hrm...
 
Old 10-21-2003, 03:50 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If it is to be be a one off then just use "cp -a" it will probably be quicker.
I wouldn't bother with /dev or /proc but the rest should go ok.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 08:50 PM
Good morning, Good evening, Good night. Cheeseboy LinuxQuestions.org Member Intro 2 11-04-2004 10:46 PM
What is SCP? radam Linux - Software 2 07-20-2004 08:07 PM
a good cron/scp tutorial eduac Linux - Security 4 08-29-2003 11:19 AM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration