{"id":4724,"date":"2019-06-02T00:00:16","date_gmt":"2019-06-01T15:00:16","guid":{"rendered":"http:\/\/www.catracing.org\/hendrb\/?p=4724"},"modified":"2020-05-25T18:20:15","modified_gmt":"2020-05-25T09:20:15","slug":"the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system","status":"publish","type":"post","link":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/","title":{"rendered":"The Proverbial Second Chance &#8211; Part Deux: Backing Up Your Data On A *NIX System"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\">The Proverbial Second Chance \u2013 Part Deux:<\/span><\/h1>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">Backing Up Your Data On A *NIX System<\/span><\/h2>\n<hr>\n<p>&nbsp;In our previous technical blog &nbsp;<span style=\"color: #00ffff;\"><a style=\"color: #00ffff;\" href=\"http:\/\/www.catracing.org\/hendrb\/technical-the-proverbial-second-chance-backup-your-stuff\/\">The Proverbial Second Chance (LINK HERE)<\/a><\/span>, we covered backing up a Windows Server using the built in Windows Server Backup utility and mentioned that the following month we will look at built in backup solutions for *Nix systems using built in commands. &nbsp;I always try and keep my promises., and since it is time to perform a back up my blog anyway.&nbsp; Let\u2019s get started! &nbsp;I have broken this blog down into 3 parts. &nbsp;Part 1 will cover backing up your web application, but not the database. &nbsp;Part II will cover backing up the database using phpMyAdmin, and part III will cover backing up the filesystem (excluding the web application and database.)<\/p>\n<p>&nbsp; Part I would be useful for those that use a web hosting service, or are migrating a self hosted web\/database application to a new server. &nbsp; Depending on your service provider you may be able to host whatever web application you please, but you don\u2019t actually have access to install executables (your own backup software.).&nbsp; On the topic of hosting providers and backups.&nbsp; While it may be part of your service that your host will perform backups, pay close attention to if and how often this is actually being done, what is actually being backed up (Is it a only a file level backup, or is the database included as well).&nbsp; How much data do they agree to back up (Are you over your limit?).&nbsp; How do they ensure your data is backed up, and most importantly, if you have an e-commerce site Is your customers personal and transaction data secure?&nbsp; Is it being encrypted, and how is it stored?&nbsp; Don\u2019t wait until something has happened to your site.&nbsp; Ask early, and confirm often!&nbsp; Do not feel guilty either! &nbsp;Make sure they are actually providing the services they are promising.<\/p>\n<p>&nbsp; So now that we have gotten the pre-ramble out of the way, let\u2019s get into the nuts and bolts of things.&nbsp; The first and easiest option is to simply compress the files we want to backup and download them.&nbsp; For this we need access to the service with a shell level access, and sFTP.&nbsp;<\/p>\n<p>&nbsp; To outline what we will be doing in part I<\/p>\n<ol>\n<li>Archiving and compressing our Web Application directory (WordPress &nbsp;and phpBB) using tar with the gzip option.)<\/li>\n<li>Copy the file to a thumb drive on my local computer.<\/li>\n<li>Dump a copy of the MariaDB databases using phpMyAdmin to my local computer and manually copy the file to the external thumb drive.<\/li>\n<li>Delete the archive on the remote web server.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp; As you can see this is all manual at this point, in a future blog we will take a look at writing a BASH script that will run monthly through a chron job to automate this process.<\/p>\n<h2><span style=\"color: #0000ff;\">&nbsp; PART&nbsp; I \u2013 Archiving your application directories.<\/span><\/h2>\n<p>&nbsp; The first thing we need to do is archive the directories so that we may download them locally.&nbsp; We will use the tar command with the gzip option.&nbsp; So this will archive the entire directory structure, then compress the archive using GZIP.<\/p>\n<p>&nbsp; First let\u2019s go to the root of our web application directory.&nbsp;On my server this is \/var\/www\/html<\/p>\n<p>So I will ssh into the web server, and at the shell prompt type the following<\/p>\n<p><span style=\"color: #ffff00;\">$ cd \/var\/www\/html<\/span><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-4741\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\" alt=\"\" width=\"1024\" height=\"267\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-300x78.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-768x200.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root.jpg 1251w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Under the web root, my web applications are in a subdirectory called hendrb, so I want to create a tar archive of hendrb with all files and sub directories and I want to compress them into a .gz archive and place this file in an sftp directory that already exists in my home directory. Even though technically you do NOT need to stop the web server it is a good idea.&nbsp; This will prevent files from not being copied because they are open for reading. &nbsp;See the documentation for your specific OS for stopping the web server, or preventing connections to your website. &nbsp;<\/p>\n<p>To TAR the directories, We will enter the following command.<\/p>\n<p><span style=\"color: #ffff00;\">$ tar -zcvf ~\/sftp\/crweb_backup0519.tar.gz hendrb<\/span><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4745 size-large\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command-1024x42.png\" alt=\"\" width=\"1024\" height=\"42\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command-1024x42.png 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command-300x12.png 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command-768x32.png 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Directory-TAR-command.png 1262w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Let\u2019s break down the command really quickly.<\/p>\n<p>Tar, which originally meant &#8220;\u2018T\u2019ape ARchive&#8221; takes many files and puts them together in a single file (So they may be written to tape.), or saved to disk.&nbsp; The options we selected -zcvf<\/p>\n<ul>\n<li>z (runs file through gzip after it is created, for compression.)<\/li>\n<li>c (creates archive)<\/li>\n<li>v verbose (displays files being archived)<\/li>\n<li>f file=ARCHIVE (Use arvhice file or device ARCHIVE)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>~\/sftp\/crweb_backup0519.tar.gz is the full path of the archive we are creating, otherwise the archive &#8216;crweb_backup0519\/tar\/gz&#8217; would be created in the directory the tar command is being executed from, &nbsp;hendrb is the name of the directory we want to copy (the location of our web applications.) Copying to the same directory as your web application may be fine depending on how your hosting is setup.<\/p>\n<p>&nbsp; So now is we do a long listing of the sftp dirtory in our home directory, we should see the compressed archive we just created.<\/p>\n<p><span style=\"color: #ffff00;\">$ ll -h&nbsp; ~\/sftp<\/span><br \/>\n<span style=\"color: #ffff00;\">total 3.4G<\/span><br \/>\n<span style=\"color: #ffff00;\">-rw-r&#8211;r&#8211; 1 root root 3.4G May 20 03:40 crweb_backup0519.tar.gz<\/span><\/p>\n<p>&nbsp; There it is. A nice 3.6G file, now wait just one minute!&nbsp; You said this was going to be compressed, why the heck is the file so big?!&nbsp;Well, most of the files in this archive are JPEGS, which are already compressed images, so you can\u2019t really compress them anymore.&nbsp; In fact, there are times when a compressed file may actually become larger when attempting to run through another compression application.&nbsp; Such is life and there really is not anything you can do about this.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #3366ff;\">Part II \u2013 Transferring the backup to your local computer using sFTP<\/span><\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp; So now that we have the backup of our web application files, we need to transfer them to our local computer.&nbsp;To do this we will use an sFTP client.&nbsp;For OS X I am using Fetch for a GUI sftp client.&nbsp; For Windows you can download and use Filezilla.<\/p>\n<p>Web hosting system are setup differently, so I have no idea what your default directory will be.&nbsp;Connecting to my server I am placed in the root of my home directory.&nbsp; You can see the sftp directory that I have created and if I double click the directory I can see the backup that I created.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-home-directory.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4729\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-home-directory-300x187.jpg\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-home-directory-300x187.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-home-directory.jpg 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I can now just drag this this file to my desktop or directly to the USB drive or network share of my choice.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-in-sftp-directory.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4730\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-in-sftp-directory-300x187.jpg\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-in-sftp-directory-300x187.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-in-sftp-directory.jpg 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-transfer-in-progress.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4731\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-transfer-in-progress-300x187.jpg\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-transfer-in-progress-300x187.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Fetch-transfer-in-progress.jpg 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>&nbsp;Once the copy is complete, I can go back to my web server and delete the backup.<\/p>\n<p>&nbsp; I will change directories to my home\/sftp directory, and do a short listing to make sure I am in the correct directory, and the file is there.<\/p>\n<p><span style=\"color: #ffff00;\">$ cd ~\/sftp<\/span><br \/>\n<span style=\"color: #ffff00;\">$ ls<\/span><br \/>\n<span style=\"color: #ffff00;\">crweb_backup0519.tar.gz<\/span><\/p>\n<p>Which we can see it is.<\/p>\n<p>I will then sudo to delete the file (Since the archive was created using SUDO, it will belong to root, which means I will need to execute the rm command with sudo even though it is in a directory I have full privileges to.)<\/p>\n<p>&nbsp; I simply enter the following command.<\/p>\n<p><span style=\"color: #ffff00;\">$ sudo rm crweb_backup0519.tar.gz<\/span><\/p>\n<p>&nbsp; We are now done with backing up the file structure of our websites, however there is still one piece missing.&nbsp; The actual database that contain the bread and butter of both of our web applications.&nbsp;Without them, the physical files are useless!&nbsp; In the next section we will go over how to backup the database to our local computer easily using phpMyAdmin.<\/p>\n<h2><span style=\"color: #0000ff;\">Part III \u2013 Backing Up Your Database Using phpMyAdmin.<\/span><\/h2>\n<p>&nbsp; The final step in this process is to back up your database, most hosted sites use php MyAdmin to allow you database administration.&nbsp; If you self-host, this is a utility you will definitely want to install.&nbsp; If your website is hosted, refer to yours hosts instructions on accessing phpMyAdmin.&nbsp;If you self host, go to the url and port you have it configured.&nbsp; At the login prompt login with the root or admin account you have configured for the database.&nbsp;<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-login.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4738\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-login-300x264.jpg\" alt=\"\" width=\"300\" height=\"264\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-login-300x264.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-login.jpg 581w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once you successfully login, you will see this screen.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4739\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen-300x170.jpg\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen-300x170.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen-768x435.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen-1024x579.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Main-Screen.jpg 1988w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click on the Export Tab<\/p>\n<p>Select the \u2018Custom \u2013 display all possible options button<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4736\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method-300x77.jpg\" alt=\"\" width=\"300\" height=\"77\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method-300x77.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method-768x197.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method-1024x263.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Backup-Method.jpg 1678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>You can choose to export all your databases into a single file, or back them up one at a time.&nbsp;Since I backed up my entire web application directory in the previous step I will leave both databases selected.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4735 size-medium\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output-300x64.jpg\" alt=\"\" width=\"300\" height=\"64\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output-300x64.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output-768x164.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output-1024x219.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Output.jpg 1678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Under Output:<br \/>\nSave output to a file<\/p>\n<p>Under Format:<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4737\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options-300x91.jpg\" alt=\"\" width=\"300\" height=\"91\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options-300x91.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options-768x233.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options-1024x311.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Format-Options.jpg 1678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Make sure SQL is selected<\/p>\n<p>Under Add statements:<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4734\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options-300x73.jpg\" alt=\"\" width=\"300\" height=\"73\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options-300x73.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options-768x186.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options-1024x248.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Object-creation-options.jpg 1678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Make sure \u2018Add DROP TABLE \/ VIEW \/ PROVEDURE \/ FUNCTION \/ EVENT \/ TRIGGER statement is selected.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4733\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options-300x104.jpg\" alt=\"\" width=\"300\" height=\"104\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options-300x104.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options-768x266.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options-1024x355.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/phpMyAdmin-Data-Creation-Options.jpg 1678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Under Data creation options<\/p>\n<p>Leave as is and&nbsp;click the \u2018Go\u2019 button.<\/p>\n<p>This will download an export of your database(s) to your local computer, copy this file to the same device your file backup was saved to. In This case localhost.sql.&nbsp; You can rename this to whatever you want at this point.<\/p>\n<p>If your site is hosted, you have now backed up both the file structure of your website, and the SQL database, and are done at this point.&nbsp; If you self-host, and do not backup your operating system, you may want to read part IV, backing up your Linux OS from the command line, unless you have no problem with rebuilding your Linux system from scratch in the event of a catastrophic failure.<\/p>\n<h2><span style=\"color: #0000ff;\">Part IV \u2013 Backing up your Linux Operating System manually from the command line, excluding your web application directory and database.<\/span><\/h2>\n<p>&nbsp; In the previous 3 parts, we looked at backing up your web application directory and database using the build in tar (Tape Archive) command, and phpMyAdmin, both utilities you should have access to on a hosted or self hosted website.&nbsp; If you self host there is a third piece to this trinity that is still not 447backed up, unless you use other methods your operating system is still unprotected.&nbsp; For this demonstration we will use the built in rsync (Remote synch) command &nbsp;while&nbsp;excluding the web application directory, and the SQL databases.&nbsp; Since we have already backed them up using other methods.<\/p>\n<p>&nbsp; First we will create a directory in the root of the filesystem called bckup, and exlude it from the backup as well.&nbsp; This is <span style=\"color: #ff0000;\">IMPORTANT!&nbsp;<\/span> Failure to exclude the destination directory from the command will cause an infinite loop in the backup.&nbsp; Once the backup is complete we will once again transfer the file to a thumb drive on our workstation for permeant storage.<\/p>\n<p>Step 1 \u2013 Create the \/bckup directory<\/p>\n<p>At your shell prompt type \u2013<br \/>\n<span style=\"color: #ffff00;\">$ sudo mkdir \/bckup<\/span><\/p>\n<p>Now let\u2019s change the permissions so only the owner (root) has read, write, and execute permissions.&nbsp;We will want to change the owner of the file to the account you will be using to transfer it via sftp after the backup is complete, but for now.<\/p>\n<p><span style=\"color: #ffff00;\">$ sudo chmod 700 \/bckup<\/span><\/p>\n<p>Let\u2019s verify the directory and permissions is correct.<br \/>\n<span style=\"color: #ffff00;\">$ ll \/bckup<\/span><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/bckup-permissions.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-4752 size-full\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/bckup-permissions.jpg\" alt=\"\" width=\"733\" height=\"28\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/bckup-permissions.jpg 733w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/bckup-permissions-300x11.jpg 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/p>\n<p>It looks good to me!&nbsp;So now let\u2019s backup our OS!<\/p>\n<p>For the exclusions, we already know where the web application resides (\/var\/www), however we do not know where MariaDB is keeping the database files.&nbsp; To locate these we must look in the \/etc\/my.cnf file and look for the datadir variable.&nbsp; We can do this using the grep command.<\/p>\n<p>At your shell prompt<br \/>\n$ grep datadir \/etc\/my.cnf<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-4732 size-large\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location-1024x57.jpg\" alt=\"\" width=\"1024\" height=\"57\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location-1024x57.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location-300x17.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location-768x43.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/mysql-directory-location.jpg 1124w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>You can see from the output that, our databases are stored in \/var\/lib\/mysql.&nbsp; Make a note of this!<\/p>\n<p>Here is a list of the directories we want to exclude<\/p>\n<ul>\n<li>\/bckup (PLEASE DO NOT FORGET THIS ONE!<\/li>\n<li>\/dev\/* (This excludes anything in the \/dev directory (Raw device files)<\/li>\n<li>\/proc (These are your system processes)<\/li>\n<li>\/sys\/<\/li>\n<li>\/tmp\/<\/li>\n<li>\/mnt<\/li>\n<li>\/media<\/li>\n<li>\/lost+found<\/li>\n<li>\/var\/lib\/mysql<\/li>\n<li>\/var\/www\/<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The command will look like this.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-4740 size-large\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command-1024x36.jpg\" alt=\"\" width=\"1024\" height=\"36\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command-1024x36.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command-300x11.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command-768x27.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/rsync-Command.jpg 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I would perform a \u2018dry run\u2019 using the &#8211;dry-run option to make sure we have enough free space left<\/p>\n<p>I ended up having to type the entire command out, for some reason it was not working when I built the command in a text editor and copied and pasted it into the shell.<\/p>\n<p>I would highly recommend that you keep an eye ton the backup \u0010he first time the backup executes, to make sure your exclusions are working properly.&nbsp; You may also find that you can exclude more directories your next run.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4742 size-large\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress-1024x576.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress-300x169.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress-768x432.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Backup-In-Progress.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>After the backup completes, you may want to tar and compress the files for easy transfer and storage.&nbsp;Depending on where you are keeping you backup files.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4753 size-large\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished-1024x737.jpg\" alt=\"\" width=\"1024\" height=\"737\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished-1024x737.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished-300x216.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished-768x553.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Finnished.jpg 1198w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>You can do this by using <span style=\"color: #ffff00;\">sudo tar -zpcvf ~\\sftp\\linuxbackup0519.tar.gz \\bckup<\/span><\/p>\n<p>The -p option is important in the command above as it preserves file permissions.&nbsp; When you uncompress the archive you want to be sure to use the &#8211;same-owner flag.<br \/>\nAs mentioned above, since sudo executes the command as root, we now need to change the owner to your user account in order to retrieve the files.<\/p>\n<p>Now simply use your sftp client to download your OS backup to your backup device.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Files-on-USB.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4755\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Files-on-USB.jpg\" alt=\"\" width=\"592\" height=\"135\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Files-on-USB.jpg 592w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/06\/Backup-Files-on-USB-300x68.jpg 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>You now have a 3 backups of your Linux Server, a file backup of web applications, a dump of your database, and backup of your linux OS.&nbsp; Let\u2019s quickly summarize what we did before wrapping up this blog.<\/p>\n<p>In Part I we created an archive of our Web Application directories, these contain the file structure and php files needed to run our web applications, it also contains the physical content that makes up our web applications (media files for the blog, etc.).&nbsp;This, along with the database dump can be used to restore the web applications in the case of directory corruption, accidental deletion, failed application upgrade, or migration to another site if you are hosting externally.<\/p>\n<p>In Part II \u2013 we covered how to retrieve our backups using an sftp client such as Fetch for Mac OS X, or Filezilla for Windows.<\/p>\n<p>In Part III we covered backing up the MySQL or MariaDB database using phpMyAdmin.<\/p>\n<p>In Part IV we covered backing up the Linux OS that our applications and database run on, for those of us that selfhost our sites.<\/p>\n<p>&nbsp; I highly recommend you test the above steps on a test server, especially if you are using them for a web server in a corporate environment.&nbsp;Myself nor anyone connected to Brent\u2019s World will not be responsible for the loss of data from performing the steps outlined in this blog.&nbsp; There are much better ways of backing up a NIX server than outlined here, these instructions are meant for a quick and dirty backup method if you do not already have another solution in place.&nbsp;<\/p>\n<p>&nbsp; Thank you for visiting Brent\u2019s World!&nbsp; Please come back next month for more exciting technical content!&nbsp; If you wish to be notified when new content is posted, please consider registering by clicking <span style=\"color: #00ffff;\"><a style=\"color: #00ffff;\" href=\"http:\/\/www.catracing.org\/hendrb\/wp-login.php\">here<\/a><\/span>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Proverbial Second Chance \u2013 Part Deux: Backing Up Your Data On A *NIX System &nbsp;In our previous technical blog &nbsp;The Proverbial Second Chance (LINK HERE), we covered backing up a Windows Server using the built in Windows Server Backup <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-4724","post","type-post","status-publish","format-standard","hentry","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World\" \/>\n<meta property=\"og:description\" content=\"The Proverbial Second Chance \u2013 Part Deux: Backing Up Your Data On A *NIX System &nbsp;In our previous technical blog &nbsp;The Proverbial Second Chance (LINK HERE), we covered backing up a Windows Server using the built in Windows Server Backup &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\" \/>\n<meta property=\"og:site_name\" content=\"Brent&#039;s World\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-01T15:00:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-25T09:20:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\" \/>\n<meta name=\"author\" content=\"Brent Hendricks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brent Hendricks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\"},\"author\":{\"name\":\"Brent Hendricks\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"headline\":\"The Proverbial Second Chance &#8211; Part Deux: Backing Up Your Data On A *NIX System\",\"datePublished\":\"2019-06-01T15:00:16+00:00\",\"dateModified\":\"2020-05-25T09:20:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\"},\"wordCount\":2607,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\",\"articleSection\":[\"Technical\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\",\"name\":\"The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\",\"datePublished\":\"2019-06-01T15:00:16+00:00\",\"dateModified\":\"2020-05-25T09:20:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.catracing.org\/hendrb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Proverbial Second Chance &#8211; Part Deux: Backing Up Your Data On A *NIX System\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/\",\"name\":\"Brent&#039;s World\",\"description\":\"Your weekly dose of the life of Brent!\",\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\",\"name\":\"Brent Hendricks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"width\":4480,\"height\":6720,\"caption\":\"Brent Hendricks\"},\"logo\":{\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\"},\"sameAs\":[\"http:\/\/www.catracing.org\",\"https:\/\/www.facebook.com\/Brents-World-912767498915017\"],\"url\":\"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/","og_locale":"en_US","og_type":"article","og_title":"The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World","og_description":"The Proverbial Second Chance \u2013 Part Deux: Backing Up Your Data On A *NIX System &nbsp;In our previous technical blog &nbsp;The Proverbial Second Chance (LINK HERE), we covered backing up a Windows Server using the built in Windows Server Backup &hellip; Continue reading &rarr;","og_url":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/","og_site_name":"Brent&#039;s World","article_publisher":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_author":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_published_time":"2019-06-01T15:00:16+00:00","article_modified_time":"2020-05-25T09:20:15+00:00","og_image":[{"url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg","type":"","width":"","height":""}],"author":"Brent Hendricks","twitter_misc":{"Written by":"Brent Hendricks","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#article","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/"},"author":{"name":"Brent Hendricks","@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"headline":"The Proverbial Second Chance &#8211; Part Deux: Backing Up Your Data On A *NIX System","datePublished":"2019-06-01T15:00:16+00:00","dateModified":"2020-05-25T09:20:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/"},"wordCount":2607,"commentCount":0,"publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg","articleSection":["Technical"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/","url":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/","name":"The Proverbial Second Chance - Part Deux: Backing Up Your Data On A *NIX System - Brent&#039;s World","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg","datePublished":"2019-06-01T15:00:16+00:00","dateModified":"2020-05-25T09:20:15+00:00","breadcrumb":{"@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#primaryimage","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Web-Root-1024x267.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.catracing.org\/hendrb\/the-proverbial-second-chance-part-deux-backing-up-your-data-on-a-nix-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.catracing.org\/hendrb\/"},{"@type":"ListItem","position":2,"name":"The Proverbial Second Chance &#8211; Part Deux: Backing Up Your Data On A *NIX System"}]},{"@type":"WebSite","@id":"https:\/\/www.catracing.org\/hendrb\/#website","url":"https:\/\/www.catracing.org\/hendrb\/","name":"Brent&#039;s World","description":"Your weekly dose of the life of Brent!","publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442","name":"Brent Hendricks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","width":4480,"height":6720,"caption":"Brent Hendricks"},"logo":{"@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg"},"sameAs":["http:\/\/www.catracing.org","https:\/\/www.facebook.com\/Brents-World-912767498915017"],"url":"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p43ojH-1ec","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/4724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/comments?post=4724"}],"version-history":[{"count":0,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/4724\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/media?parent=4724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/categories?post=4724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/tags?post=4724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}