Subscribe to Mailing Lists     FAQFAQ    SearchSearch      Register  Log in to check your private messagesLog in to check your private messages    Log inLog in 
These forums brought to you by Backup Central, where we also have the Mr. Backup Blog, Mailing Lists, FAQs,
and Directories of Backup Software and Hardware
remote-schema works manually, but not w/ rdiff-backup

 
Post new topic   Reply to topic    Backup Central Forums Forum Index -> Rdiff-Backup
View previous topic :: View next topic  
Author Message
Bryan Vicknair
Guest





PostPosted: Thu Oct 15, 2009 8:37 am    Post subject: remote-schema works manually, but not w/ rdiff-backup Reply with quote

When I run this command:
sudo rdiff-backup --print-statistics --exclude-globbing-filelist
/home/bry/backup/vic/exclude --remote-schema 'ssh -C %s sudo
rdiff-backup --server' vic::/home /home/bry/backup/vic/home

I get the error:
ssh: Could not resolve hostname vic: Name or service not known
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

ssh -C vic sudo rdiff-backup --server


However, when I run "ssh -C vic sudo rdiff-backup --server" manually,
it works fine. Why is it saying it can't resolve hostname vic:? I
have 'vic' setup in my .ssh/config file, and it works fine manually.
The only reason I am using --remote-schema is so I can stick the
'sudo' in there, because I need rdiff-backup to run as root on the
server so it can read all the files, and the root user is not
available in Ubuntu, so I have to use sudo.


Bryan


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Back to top
Andreas Olsson
Guest





PostPosted: Thu Oct 15, 2009 9:15 am    Post subject: remote-schema works manually, but not w/ rdiff-backup Reply with quote

On Thursday 15 October 2009 18:36:29 Bryan Vicknair wrote:
Quote:
When I run this command:
sudo rdiff-backup --print-statistics --exclude-globbing-filelist
/home/bry/backup/vic/exclude --remote-schema 'ssh -C %s sudo
rdiff-backup --server' vic::/home /home/bry/backup/vic/home

I get the error:
ssh: Could not resolve hostname vic: Name or service not known
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

ssh -C vic sudo rdiff-backup --server


However, when I run "ssh -C vic sudo rdiff-backup --server" manually,
it works fine. Why is it saying it can't resolve hostname vic:? I
have 'vic' setup in my .ssh/config file, and it works fine manually.
The only reason I am using --remote-schema is so I can stick the
'sudo' in there, because I need rdiff-backup to run as root on the
server so it can read all the files, and the root user is not
available in Ubuntu, so I have to use sudo.

In what .ssh/config have you set the hostname? In /home/you/.ssh/config or
/root/.ssh/config? When you use sudo you run the program as root, hence it will
look in the root home directory for user specific setting. Another option is to
use /etc/ssh/ssh_config, which then will apply those settings to every user on
the machine.

Also, an Ubuntu system very much has a root user. It is simply locked. If you
want to use it you can do so by giving it a password and/or an ssh public key.

// Andreas

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Backup Central Forums Forum Index -> Rdiff-Backup All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Magic SEO URL for phpBB