Best Practices: how to backup my encrypted Home folder in an encrypted way?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sebbo
Level 2
Level 2
Posts: 64
Joined: Wed Mar 18, 2015 5:00 am
Location: DE

Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by sebbo »

Hey there :)

Googling this bring me mostly people who need to recover their encrypted home folder...

But what i want is actually to use the encryption that i'm using anyway, to backup my homefolder in an encrypted way. I want the backup to be encrypted as well!

But i have no clue where to really start this.

I can either use Luks to create an encrypted partition on my 2TB USB HDD and then copy the files to the mounted LUks Container while my home folder is unencrypted (or mounted?).

But could it be easier to simply transfer the encrypted home folder directly? How would i start the transfer when the computer is running and how would i access the data on another computer (i.e. how to save the actual encryption keys which are protected by my user password?)

Or would that be BS and I'd be happier with the LUKS Alternative?

thanks for your suggestions!
brs
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by WharfRat »

I would backup the clear files to the LUKS container.

If you don't want to dedicate the entire 2TB USB HDD then create a LUKS virtual filesystem of appropriate size to hold your home content :wink:
Petermint
Level 9
Level 9
Posts: 2983
Joined: Tue Feb 16, 2016 3:12 am

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by Petermint »

For an extra backup, you could boot Clonezilla and copy the encrypted partition. A restore would bring the whole partition back with the encryption in place.

For people looking at copying encrypted data in general, an encryption might use something from your computer to make the encryption unique, making it impossible to restore on another computer. You should test opening the encrypted data on another computer. Even a change of software version might alter the encryption settings, creating recovery problems.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by catweazel »

Petermint wrote:Even a change of software version might alter the encryption settings, creating recovery problems.
Highly unlikely.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Petermint
Level 9
Level 9
Posts: 2983
Joined: Tue Feb 16, 2016 3:12 am

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by Petermint »

"Highly unlikely" There are some encryption standards that are no longer trusted. Some software recently dropped the older options. You could accidentally keep old settings when you copy encrypted partitions to new disks. A new disk is a good time to update to the latest level of encryption.
sebbo
Level 2
Level 2
Posts: 64
Joined: Wed Mar 18, 2015 5:00 am
Location: DE

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by sebbo »

Thanks for your Answers.

Clonezilla might be an easy way to have a complete backup.

However, i see three disadvantages
- i need to backup always everything, or is there some incremental clonezilla? As the HDDs are encrypted, i guess rather not
- i would need to shutdown my pc, run the backup over night, which would take quite some time
- in case my laptop is stolen i need to get (almost) the same hardware to be able to boot from the backup, right?

Probably the easiest thing would be to mount a LUKS encypted external HDD and rsync the files from the unencrypted home folder. This would be the least overhead. However i would be dependant on LUKS being compatible for some more years. Is there anything likely that this will change?
WharfRat

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by WharfRat »

sebbo wrote:However i would be dependant on LUKS being compatible for some more years. Is there anything likely that this will change?
I've been using LUKS encrypted drives for years with no problems.

Just stay current with kernel and package upgrades and you'll be fine.
Laurent85
Level 17
Level 17
Posts: 7081
Joined: Tue May 26, 2015 10:11 am

Re: Best Practices: how to backup my encrypted Home folder in an encrypted way?

Post by Laurent85 »

WharfRat wrote: Just stay current with kernel and package upgrades and you'll be fine.
I agree. LUKS is the Linux disk encryption standard at the block level and should be preferred over any alternatives.
Image
Locked

Return to “Other topics”