Backing up data by cloning hard drive to Encfs container & sync with cloud?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Backing up data by cloning hard drive to Encfs container & sync with cloud?
I apologize if this is not the right forum section, but I couldn't think where else would be a more appropriate section.
I make regular file backups to my own cloud, but this is a hassle to maintain (I used one local server and one remote server). Currently, also, I backup only select files.
I wanted to get some thoughts on a proposed backup scheme, and see if I've finally gone off the deep end.
- Buy a monstrous external (or 2nd internal) hard drive, set up Encfs container, clone (dd?) current HD there. Then, sync the container with, say, SpiderOak. I would mount the Encfs container nightly and perform regular rsyncs between primary HD and this Encfs container. Sync the container with SpiderOak (?) regularly.
Is it crazy to want to backup a clone of the HD instead of select files? The reason for the entire HD backup is in case my current HD dies, I'd have a working backup ready to go.
I used to sync truecrypt with Dropbox a while ago, and that worked ok. But I switched to using my own cloud because I wanted greater control, and Dropbox's 2GB size restriction.
The reason why I want to move away from my current cloud setup is because, to perform a backup, I now have to decrypt the truecrypt container *on* the remote machine, and sometimes the re-encryption fails and so the files are just sitting there exposed. I'd love to use SSHFS and Encfs (and have tried), but the backup speed is atrocious. Perhaps this is because the remote machine is one of these fan-less low horsepower ones, but it just doesn't work well.
I'd greatly appreciate any advice/thoughts/feedback on the proposed structure.
You can clone your drive, compress it and also encrypt it using clonezilla. Depending on your drive size and the compressibility of your data (did I invent a new word here?), this might be a practical solution - for disaster recovery.
But not a good solution for the perhaps more frequent case of restoring an accidentally deleted file. You don't want to restore a full backup just to find that file. So, in addition to the drive clone, you should also perform a file-by-file backup.
Thanks for the response. I was hoping for some specifics. I'm aware of file by file backups, there are definitely methods to doing that, but it doesn't really go to the question at hand.
For sure I want to clone my drive and keep it off-site. If I go the drive backup route, I won't bother with encrypting with software since my hard drives are all FDE. Having a full clone also allows me to get back up and running in no time.
I'm also not as concerned about accidentally deleted files, since I operate usually within the GUI, and anything deleted goes to the recycle bin. In the even I'm not, my syncs are usually not scheduled to run until each night, and I'd likely notice that same day if a file is missing. If I were really concerned about this, I would use duplicati or something of that nature as the backup mechanism.
Any concerns about the following:
1) Full clone onto a drive with EnCFS, with nightly rsync. Then sync the EnCFS container with SpiderOak
OR
2) Full clone onto a drive with FDE, and keep that offsite. Then copy of most important files (there are a lot!) onto a drive and into an EnCFS container, with nightly rsync. Then sync the EnCFS container with SpiderOak.
Essentially: is it bad to go all the way and keep the entire clone in the EnCFS container and rsync that each night + sync to Spider, rather than just doing it for important files?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.