LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-02-2011, 11:15 PM   #1
brendan_p
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 1
Encrypted backups over NFS or SSHFS share


Been going around in square circles here so any help and/or suggestions welcome!

Goal:

> encrypt my backup data on shared network server (shared via NFS or SSHFS)
> want the encrypted folder to be transparent to my local machine, i.e work as a normal mounted NFS or SSHFS folder would.
>> This is so that I can keep using "backintime" as a backup tool. It does everything I need except encryption.
> The encrypted folder should be mounted automatically on login. E.g. same as encrypted private directory.
>> For unattended backups

Some notes
> My home directory is already encrypted, but I don't just want to copy over the encrypted files because then I won't have any useful version'ing on them.
> Tried to use encfs and also Cryptkeeper. Using local folders works fine but when trying to set-up the encrypted folder on the NFS share it fails.
> Running Ubuntu Lucid, 10.04
> I'd like to set this up on all clients on the local network to backup to the same local networked server which is also running Lucid 10.04.

Thanks in advance.

Cheers
Brendan
 
Old 12-05-2011, 04:33 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
A normal encrypted folder is protected by some encryption scheme on the local computer. Same would go for that remote. It would be encrypted by the remote system.
 
Old 12-07-2011, 03:33 AM   #3
brendan_p
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
A normal encrypted folder is protected by some encryption scheme on the local computer. Same would go for that remote. It would be encrypted by the remote system.
Thanks for the info. But need a solution if it's possible to do.

Cheers
B
 
Old 12-07-2011, 05:23 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
An "encrypted folder" is really a file, mounted using the loop device. So it has a file system when mounted and you can share the mount point via NFS. The files inside are not encrypted. Do you need help creating this file and preparing the file system? Some distos have a graphic tool to do this for you. If your backup server has a GUI partitioning tool, look there. It will create and prepare the file, as well as write the /etc/fstab entries for it. All that remains is to share the mount point.

To do this manually, you would ue the "dd" command to create a large file; "losetup" to attach the file to a device; cryptsetup to prepare the encryption; and mkfs to create a file system on encryption device. More steps to create it initially, then to use it. Using your system's partitioning tool would be easier.
Here is a how-to on passwordless encryption: http://wejn.org/how-to-make-password...ryptsetup.html
The key is located on a USB stick. To locate the key on your backup server would be pointless, defeating the purpose of encryption.
 
1 members found this post helpful.
  


Reply

Tags
backups, encfs, encryption, nfs, sshfs



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
LXer: Creating Encrypted FTP Backups With duplicity And ftplicity On Debian Lenny LXer Syndicated Linux News 0 04-23-2010 09:50 AM
Doubting between NFS and SSHFS xri Linux - Networking 1 02-15-2009 04:56 AM
LXer: Creating Encrypted FTP Backups With duplicity And ftplicity On Debian Etch LXer Syndicated Linux News 0 12-18-2007 11:20 PM
Encrypted incremental backups? DaneelGiskard Linux - Security 3 07-25-2007 06:57 AM
fast encrypted NFS but slow regular NFS cazzazullu Linux - Networking 0 10-19-2004 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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