Is it possible to run 'umount /' and then copy system files to another drive?
Asked by
5arcmin_field
I'm the root user, and I'm wondering if I can use the command 'umount /' followed by 'cp / /backup1' to successfully back up my system. I'm assuming that '/backup1' is on an ext4 filesystem and has enough space. Will this work, or are there issues I should be aware of?
Answers
If you're not using LVM, there's a better way to manage backups these days. Consider looking into different tools and strategiesโbacking up properly can save you a lot of headaches in the future!
Reply to this answer
Nah, you won't be able to unmount '/' since there will be active files in use. It's generally not necessary to unmount your main filesystem to perform a backup. You might want to consider using tools like rsync, which let you do backups without that hassle. There are also options like file system snapshots or dedicated backup tools like BorgBackup and Restic that could be really helpful.
Reply to this answer
You really can't unmount '/' without running into issues. If you're looking to back up your system safely, booting from a live USB is a solid approach. That way, you can ensure that nothing is modifying the filesystem while you create a copy.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions