Ask Your Question

What directories do I need to backup --without issues

asked 2017-12-31 12:45:14 -0500

Cyber Linux gravatar image

updated 2017-12-31 12:45:55 -0500

What directories do I need to backup --without issues;

--On the same machine.

--On the same version of the distribution.


For Ex: backup from Fedora 27 has everything and boot up Fedora 27 (new) on the same machine with restoring everything!

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-31 17:50:30 -0500

Panther gravatar image

updated 2017-12-31 18:12:00 -0500

Only you can determine what to backup and there is always a possibility of conflicts between system settings and packages when you upgrade.

Personally I back up /home , /root , any system files I edit , and any server data such as mail , shared directories on samba or nfs, mysql database , and /var/www/html .

It varies if I am backing up a desktop or server and what services I am running on the server.

 sudo tar --selinux -cvf /tmp/backup.tgz /home /root

-- selinux preserves selinux context

For a full system backup this ubintu wiki page has a nice discussion of options but I would add the -- selinux option

Dan Walsh's selinux / tar page has additional discussion

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-31 12:45:14 -0500

Seen: 86 times

Last updated: Dec 31 '17