![]() ![]() don’t have any cd’s or removable media mounted). Also make sure you don’t have anything mounted in /media (i.e. You might also not want to include the /mnt folder if you have other partitions mounted there or you’ll end up backing those up too. Also make sure you don’t include the file itself, or else you’ll get weird results. ![]() We don’t want to backup everything since some dirs aren’t very useful to include. Now come the directories we want to exclude. Next comes the root of the directory we want to backup. Next, the name the archive is going to get. ‘preserve permissions’(to keep the same permissions on everything the same), and ‘gzip’ to keep the size down. ‘cvpfz’ are the options we give to tar, like ‘create archive’ (obviously), The ‘tar’ part is, obviously, the program we’re going to use. Code: tar cvpzf backup.tgz -exclude=/proc -exclude=/lost+found -exclude=/backup.tgz -exclude=/mnt -exclude=/sys -exclude=/backup -exclude=/opt/zimbra / ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |