LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2008, 09:24 AM   #1
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Rep: Reputation: 15
how to tranfer contents from one system to another


I have a computer with ubuntu OS which contains all the files, directories, permissions, user accounts, website informations... and another with debian OS.
I want to transfer all the files, directories, permissions, user accounts, website informations... from the ubuntu system to the debian system.

Can anyone tell me how to do it? Does the rsync work? If so, how should i use it?

Thanks in advance.
 
Old 03-25-2008, 09:43 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Clear the drive of the receiving box with fdisk. I would use dd to drop the contents of the drive to the new drive. There is an excellent thread on the use of dd so just do a search for it. It will absolutely replicate the system.
 
Old 03-25-2008, 10:15 AM   #3
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Original Poster
Rep: Reputation: 15
Will the OS of the receiving box be debian, if i did dd??
 
Old 03-25-2008, 10:28 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
It will be identical to the Ubuntu box. dd stands for disk dump. Done correctly it will be an exact replica even down to the boot sector.
 
Old 03-25-2008, 10:37 AM   #5
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Original Poster
Rep: Reputation: 15
I need to preserve the debian os. Is it possible to use rsync to tranfer all the contents, user accounts...
 
Old 03-25-2008, 10:57 AM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,968

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
I would say don't do it, you won't get it to work if you have a very complex configuration. I have never heard of an app for that use. We can't get an upgrade to work.

Rsync is a good tool to sync data. It can be used to copy. You would need a complete list of the folders and files you want to transfer. Might be easier to just use gui to transfer data across shares one at a time.
 
Old 03-25-2008, 11:23 AM   #7
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you both for your reply. will it be useful if i clone or image my harddisk. I understand that if i do a clone or image, my os for the cloned system will become ubuntu. The reason i need to tranfer all the data is because the current system is old and has less disk space. The other one has bigger disk space.
 
Old 03-25-2008, 12:03 PM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You wouldn't be able to mix systems but you could transfer things like user accounts and files that are not os dependent.
 
Old 03-25-2008, 12:17 PM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Something you might consider is just copying, say, the user directories; e.g., /home/* using scp. It may not be elegant, but it sure is simple and you can copy only the things you need to (/home, /usr/local and the like).

Just get on the target in /home and do scp -pr source_machine:${PWD}/* . which will do a recursive copy of all the subdirectories.

Might be useful.

Last edited by tronayne; 03-25-2008 at 12:19 PM.
 
  


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
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 04:02 AM
mail tranfer using Kontact yvk Linux - Software 1 01-22-2006 08:29 PM
same system variable, but with different contents? kpachopoulos Linux - General 1 07-31-2005 05:15 PM
Apache2: How to allow Apache to display contents in the file system? vous Linux - Software 1 02-03-2004 05:36 AM
Almost constant data tranfer UnTamed Linux - Networking 2 09-17-2003 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 PM.

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
Open Source Consulting | Domain Registration