D
D
Dmitry2015-10-08 14:16:27
Backup
Dmitry, 2015-10-08 14:16:27

How to encrypt one Linux to another?

Hello dear!

  1. There is my Ubuntu server with sites, databases and personal data totaling about 1 TB.
  2. And there is access (100 Mbps over LAN) to a Gentoo server with a lot of free space and other users.

I would like to make a nightly differential or incremental (not determined yet) backup of my server, but with data encryption on Gentoo so that its other users do not get access to my data.
There are hundreds of ways, so I have already broken my head which one is better to choose.
Advise on the best way to implement the plan. Root is everywhere.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Max, 2015-10-08
@MaxDukov

tar => openssl aes-256-cbc -in my_backup.tar.gz -out my_backup.enc => scp ?

N
Nadz Goldman, 2015-10-08
@nadz

Well, it's like a trial balloon of the proposal.
I would do this: go to gentoo via ssh, connect an encrypted disk, start rsync on ubuntu.
The encrypted drive will not be accessible without the key.
The key is lying on ubuntu in a place where there is only root access.

V
Vlad Zhivotnev, 2015-10-08
@inkvizitor68sl

tar can increment. Well, then openssl already.

O
oni__ino, 2015-10-08
@oni__ino

Read about LUKS partition encryption and SSHFS mounting (eg here and here ) On gentoo, create a physical partition or lvm or container. I won’t advise you on specific examples, I did it a long time ago, now there is no such need.
But everything was exactly like this:
I allocated a partition with LVM, encrypted it.
Connected the encrypted partition via mount sshfs entered the key
Next, any tool on your side will do.
Scp was still working for me (I was not familiar with rsync - now of course you can’t do without it)
You can do either a full backup, or synchronization, or archives, as you write.
You can still try to create an encrypted container and mount it if there is no way to make partitions.

D
Dmitry, 2015-10-14
@seventh

In the end, I connected the necessary directory via NFS and poured a backup to it using duplicity and a script that makes life easier .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question