LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-19-2006, 02:15 PM   #1
FourierXForm
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
Backing up to remote server securely


Hello,

I am trying to find a solution of backing up my server to a remote server. The key is to do this securely without having files placed directly on the server I am trying to back up. Here is what I am trying to do:

As root:
Code:
root@localhost$ tar -cz /path/to/backup | ssh backupusr@remote.host.com 'dd of=/path/to/store/backup.tar.gz'
However, this prompts me for "backupusr's" password, which I don't want since I will be using this in a script. The backupusr has public/private keys so if I am logged in as the backupusr and ssh to remote.host.com, I log right in without a password.

For security purposes, I do not want to mount an NFS share nor use Samba. Any ideas?

Thanks!
 
Old 01-19-2006, 02:56 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
look into sbackup (Simple Backup)-- it was created during a google competition last summer.

i don't know if it encrypts pw or not.. but i do know it is simple, flexible and it works.

good luck.
 
Old 01-19-2006, 04:01 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
However, this prompts me for "backupusr's" password, which I don't want since I will be using this in a script
Create a public/private key pair as root@localhost
Code:
ssh-keygen -t dsa
Now open the file /root/.ssh/id_dsa.pub and copy and paste its contents into /home/backupusr/.ssh/authorized_keys on remote.host. Now you should be able to go
Code:
ssh backupusr@remote.host.com
and it will automatically log you in to remote.host.
 
  


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
how to implement DNS server securely inaki Linux - Security 2 10-03-2005 08:40 AM
Backing Up Server stlyz3 Linux - Enterprise 1 06-04-2005 04:46 PM
backing up remote folder with rsync and ssh ohcarol Linux - Software 6 01-03-2005 12:43 AM
Backing up remote Linux Server to Local Win2KPro CD-RW over SSH McK66 Linux - General 3 06-08-2004 09:05 PM
Backing up Linux to a remote server! DigiCrime Linux - General 5 12-10-2002 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:10 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
Open Source Consulting | Domain Registration