Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


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

Rep: Reputation: 0
Backing up to remote server securely


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:
root@localhost$ tar -cz /path/to/backup | ssh '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, I log right in without a password.

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

Old 01-19-2006, 03:56 PM   #2
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, 05:01 PM   #3
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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
ssh-keygen -t dsa
Now open the file /root/.ssh/ and copy and paste its contents into /home/backupusr/.ssh/authorized_keys on Now you should be able to go
and it will automatically log you in to


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

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

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