View previous topic :: View next topic |
Author |
Message |
dragonuv n00b
Joined: 06 Jun 2010 Posts: 55
|
Posted: Sat Apr 09, 2011 3:06 pm Post subject: Encrypting a folder |
|
|
Hi,
I'm interesting in encrypting a folder in my local HD, I was thinking about an encrypted loopback device I mount each time I want to access its contents but the disadvantage is that I have a backup server at my house and if I had not unmounted the device it could copy its contents into the server.
I was looking for a more successful method, I would be grateful if someone could offer a decent method.
Thanks |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Sat Apr 09, 2011 3:50 pm Post subject: |
|
|
Autounmount every few hours automatically? _________________ My blog |
|
Back to top |
|
|
dragonuv n00b
Joined: 06 Jun 2010 Posts: 55
|
Posted: Sat Apr 09, 2011 4:00 pm Post subject: |
|
|
That's a risk I can't afford. what if I mount the second the backup server decides to backup my computer? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21822
|
Posted: Sat Apr 09, 2011 5:23 pm Post subject: |
|
|
Configure your backup not to cross mount points. That way, if it runs while the device is mounted, it will at most copy the owner/permissions of the mount point, but none of the contents. If you hide the mount inside an area that is normally not archived, such as a temporary directory, you can avoid even that problem. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Sat Apr 09, 2011 5:31 pm Post subject: |
|
|
Hu wrote: | Configure your backup not to cross mount points. | Even simpler (But I assume not possible) you could try to exclude the mount point/directory. |
|
Back to top |
|
|
dragonuv n00b
Joined: 06 Jun 2010 Posts: 55
|
Posted: Sat Apr 09, 2011 7:14 pm Post subject: |
|
|
Hu wrote: | Configure your backup not to cross mount points. |
good idea, how is it done? |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Sat Apr 09, 2011 7:40 pm Post subject: |
|
|
I suggest to use ecryptfs, and make your backup script only copy the crypted files subdirectory. |
|
Back to top |
|
|
dragonuv n00b
Joined: 06 Jun 2010 Posts: 55
|
Posted: Sat Apr 09, 2011 7:51 pm Post subject: |
|
|
chithanh wrote: | I suggest to use ecryptfs, and make your backup script only copy the crypted files subdirectory. |
please explain? how is ecryptfs better than a loopback device? and how do i make my backup script do that? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21822
|
Posted: Sat Apr 09, 2011 8:21 pm Post subject: |
|
|
dragonuv wrote: | good idea, how is it done? | That depends on what tool is collecting the list of files to archive. You have not told us yet how you pick which files are in and which are out. If you are using find ... -print0 | tar --null -T - ..., then add -xdev to your find. If you are letting tar pick files, add --one-file-system. If you are using some other mechanism, please describe it. |
|
Back to top |
|
|
dragonuv n00b
Joined: 06 Jun 2010 Posts: 55
|
Posted: Sat Apr 09, 2011 8:44 pm Post subject: |
|
|
Actually I have not decided yet how the backup system will work. probably a bash script that will copy the content of the whole filesystem to a local folder. I just didn't want the script to include entries of folders that should't be copied |
|
Back to top |
|
|
|