LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-16-2007, 08:40 AM   #1
salimmeethoo
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Red face 2domain but backingup the wrong one .. what am i doing wrong


Hi, i am quite new to linux. my problem is that i have to backup the files and folders of one domain but using rsync -a /home/default/myseconddomain.co.uk etc it is still backing up the first domain

Help help help please
 
Old 10-16-2007, 10:45 AM   #2
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Give us your entire rsync command. If your connecting to a computer with it's domain name, make sure your dns is correct and you can test this by using the IP. The basic structure is:

rsync source destination
 
Old 10-16-2007, 10:06 PM   #3
salimmeethoo
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks but

Thanks but you would appreciate that for security and confidentiality i can't provide you with the exact domain and destination folders.. but yes i have been following the rysnc structure ie. rsync source destination but my problem remains that i have been typing the correct source but its backing up the wrong source
e.g say i have two domain : dom1.com and dom2.com and my destination folder is backup

my rsync command was like:
rsync -a /home/default/dom2.com/user/htdocs /mnt/backup

the result is i have dom1.com as backup when i called dom2.com
 
Old 10-17-2007, 10:43 AM   #4
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Quote:
Originally Posted by salimmeethoo View Post
Thanks but you would appreciate that for security and confidentiality i can't provide you with the exact domain and destination folders.. but yes i have been following the rysnc structure ie. rsync source destination but my problem remains that i have been typing the correct source but its backing up the wrong source
e.g say i have two domain : dom1.com and dom2.com and my destination folder is backup

my rsync command was like:
rsync -a /home/default/dom2.com/user/htdocs /mnt/backup

the result is i have dom1.com as backup when i called dom2.com

Your command seems off your trying to connect to another computer called dom2.com. What your command is now says that you are on the exact same machine and you are copying the htdocs directory the that same machines backup directory. I guess the best question is are you connecting two computers or is all this on a single machine. If it's on a single machine try the cp command and see what happens.

Now if this is between two entirely separate computers your command is wrong. It should be like this.

rsync -a root@dom2.com:/home/default/user/htdocs /mnt/backup

You will have to put a password in if your not using keys. The above command connects as root but you can change it to whatever user that you want to connect to and has the correct rights to the documents.
 
  


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
2dns but backingup only one salimmeethoo Linux - Server 0 10-16-2007 08:22 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 07:21 AM
what am i doing wrong, in going from 2.4.33 to 2.6.17 outstream Linux - Kernel 8 01-12-2007 06:44 AM
Getting Wrong IP blackdragonblood Linux - Networking 14 06-10-2005 04:56 PM
my time is wrong and calender is also wrong Paxmaster Linux - General 6 12-16-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:13 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