Backing up encrypted /home/folder while on liveUSB

I am trying to backup to ehdd while on a liveUSB but when I write

$  dd if=/dev/sda6 bs=8M | gzip -9 > /media/usb/backupimage.gz 

I get the message “failed to open /dev/sda6′:Permission denied (the /home/folder in there is encrypted).

What do I need to do?

I want to backup before resizing partitions with gparted before reinstalling system.

Backing up Knox secure folder while in safe mode on a Note9

Long story short, my phone can only operate in safe mode unless I wipe it right now. I’ve backed up everything except for what used to be in my secure folder. I logged into it now that I am in safe mode, but it shows as empty and I want to back it up either by transferring it out and onto an sd card or by using the built in feature on the secure folder. Is there any way to access those files that I was able to access while operating the phone normally now that I am in safe mode.

Prevent USMT from backing up C drive

I need a way to make the User State Migration Tool not back up the C drive – I only want it to backup one specified user profile.

I can already get it to backup a specified user profile (just the one i want, not all the others)…but it backs up c drive as well, which results in loadstate restoring duplicate start menu and public desktop shortcuts. Not to mention loads of folders on c:\ that I don’t want restored.

I’ve seen many methods of playing with a custom.xml file to explicitly exclude the entire C drive, however everything I’ve tried results in c:\ data still being restored.

USMT excluding this computer

These links offer the advice on which I’ve based my approaches; however unsuccessfully. I’m hopeful someone here has done this before, and may know just what is missing to get this working.

Can anyone advise how to exclude C drive?

Thank you,


Duplicity Error Message when Backing Up

Everything was working fine, nothing changed on my system – Ubuntu 18.04, right up to date. And I do the weekly backup to my external HDD and this message comes up after saying the backup failed. Can anyone help?

Traceback (innermost last): File “/usr/bin/duplicity”, line 1555, in with_tempdir(main) File “/usr/bin/duplicity”, line 1541, in with_tempdir fn() File “/usr/bin/duplicity”, line 1393, in main do_backup(action) File “/usr/bin/duplicity”, line 1511, in do_backup full_backup(col_stats) File “/usr/bin/duplicity”, line 572, in full_backup globals.backend) File “/usr/bin/duplicity”, line 454, in write_multivol (tdp, dest_filename, vol_num))) File “/usr/lib/python2.7/dist-packages/duplicity/”, line 146, in schedule_task return self.run_synchronously(fn, params) File “/usr/lib/python2.7/dist-packages/duplicity/”, line 172, in __run_synchronously ret = fn(*params) File “/usr/bin/duplicity”, line 453, in vol_num: put(tdp, dest_filename, vol_num), File “/usr/bin/duplicity”, line 342, in put backend.put(tdp, dest_filename) File “/usr/lib/python2.7/dist-packages/duplicity/”, line 395, in inner_retry % (n,, util.uexc(e))) File “/usr/lib/python2.7/dist-packages/duplicity/”, line 79, in uexc return ufn(unicode(e).encode(‘utf-8’)) UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 37: ordinal not in range(128)

Backing Things Up


I was hoping someone here can help with a plan to back things up.

I have 5 virtual machines, 3 cPanel reseller accounts and one… | Read the rest of

What is difference between assigning to auto-Implemented properties VS their backing fields within the class

Before I started using auto-implemented properties, I was taught that when assigning properties in the constructor (because of the potential of making a property read only), I should assign directly to the private member for the property (which we would usually name with the property’s name with an underscore in front of it. EX: _propertyName.)

When I switched to using auto-implemented properties, I kept the practice, even so much as establishing that only the private members should be referenced inside the property’s class. I understand those auto-implemented private members are referred to as “Backing Fields”.

Considering the usefulness of the backing fields, I find it fascinating that they are invisible to intellisense until fully typed. Further, I made the observation that when you auto-implement the property, it appears as though you can assign to a Read Only property within the property’s class.

Considering the changes that have happened in the .net framework, I am beginning to question what is the “Right” way to handle property’s from within the class. I understand that is somewhat subjective, but I wonder are there drawbacks to the way I have done this? So I’m left with a couple questions on how this works, and what the implications on my software’s design (however minor) are:

  1. Does calling the auto-implemented property from within property’s class call the Get and Set?
  2. Does calling the property’s backing field bypass this?
  3. Am I wasting (however few) processor cycles by using the the property instead of the backing field?
  4. Or am I exposing myself to a potential problem in the future by using the backing fields?

Or simply put:

What is difference between assigning to auto-Implemented properties VS assigning directly to their backing fields?

It seems this question almost straddles Software Engineering and Stack Overflow depending on how you word it. Please let me know if I should modify the wording or migrate it.


backing up corrupted linux os

The /bin folder of my linux system was accidentally deleted as a superuser. Now the system is corrupted, and restarting it will collapse the system. There are some stackoverflow posts which list what can be done in such case to restore the bin folder. I have tried them and it does not seem to work for my case. Therefore, I would like to backup all my data and softwares, and clean install the OS. My question is how do I create a backup of my data and softwares, and how is the backup restored once the clean install is successful? Using external softwares to back up is not an option now because my system denies permission if I try to do that.

Backing up PGP key pairs

I am new to PGP and have created a keypair using Kleopatra. The public key is now published on certain sites so ppl can message me securely. The private key is held in Kleopatra software and when I get a message I paste it in and then decrypt and it asks me for the password…

However, I think it is a good idea to back up both the public and private keypair somewhere… but I cannot find a way to do this in the software?

I thought I had done this and it created a .gpg file which I did back up securely months ago.. but I now cannot remember/tell if this contains BOTH pub and private keys?? Because surely they would be in diff files?

I am going to get a new pc and laptop soon and completly securely wipe everything so need to ensure the kaypair is saved somewhere..

can anyone help? i find kleopatra software somewhat confusing to be honest…