![]() ![]() We don't want to backup everything since some directories aren't very useful to include. exclude=/example/path - The options following this model instruct tar what directories NOT to backup. It will be stored in the current working directory, the one you set when you used the cd command. Z - compress the backup file with 'gzip' to make it smaller.į - specifies where to store the backup, is the filename used in this example. P - preserves the permissions of the files put in the archive for restoration later. V - verbose mode, tar will print what it's doing to the screen. It is modified by each letter immediately following, each is explained bellow. Tar - is the command that creates the archive. To understand what is going on, we will dissect each part of the command. tar -cvpzf -exclude=/ -one-file-system / The following is an exemplary command of how to archive your system. Simply use the cd command to navigate there. In all cases, ensure the location your saving the archive to has enough space. For instance to a mounted external hard drive, another partition or disk connected internally, even a folder in your home directory could be used. This is an arbitrary decision, you should create the backup elsewhere. To gain temporary root permission, simply preface any command you want to issue with sudo, as explained in RootSudo.įor this example, we will change directories to root. Some directories require root or superuser permissions to read and write (needed for backup), for an explanation on why see FilePermissions. To get started, please open up a terminal, in Ubuntu this can be done by Applications Menu -> Accessories -> Terminal. Go through the contents of your user folder in /home and delete all unwanted files in the subdirectories, often people download files and forget about them for instance. This will reduce the amount of exclusions you need to type later in the process.Unmount any external drives and remove any optical media such as CDs or DVDs that you do not want to include in the backup.Many users explicitly want backups of their email and browser settings. If you are not worried about the security concerns, this step is not necessary. Wipe your saved browser personal details and search history. ![]() Doing so will reduce the size of the archive created in relation to how much space is liberated.Ī quick list of examples is below, decide for yourself what applies: This includes the home folder which can be filled with many files not needed. ![]() In preparation for a complete backup of the system, it is a good idea to empty the trash and remove any unwanted files and programs from your current installation. Read the entire tutorial before proceeding and understand what you are doing. Improper usage of any archival program can cause unintended data loss. It will detail the creation and restoration of archives, including operation over a network.īefore continuing users are encouraged to read the TerminalHowto page which explains many basic concepts related to working with a terminal. This subpage will acquaint a user with the tar archival program, a CLI solution to the creation of compressed archival backups. This page is part of the BackupYourSystem article, as such, ensure you've read that prior to continuing. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |