Array
(
    [0] => Warning
    [1] => Undefined array key "language"
    [2] => /home/whmcsdev/public_repo/wbteampro.major-release/installation/modules/addons/wbteampro/initialize.php
    [3] => 282
)
Array
(
    [0] => Warning
    [1] => Undefined property: stdClass::$state
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 942
)
Array
(
    [0] => Deprecated
    [1] => htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 279
)
Creating a Backup using the TAR Command - Knowledgebase - WHMCS Dev
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Creating a Backup using the TAR Command Print

  • 2

One of the most common commands you will discover when dealing with a hosting server is the TAR and GZIP commands.  Because these tools are so common, the GZIP compression engine has been tied into the TAR script. This allows you to execute a single command that will package and compress an entire folder tree.

Create Compressed TAR Files for BACKUP

  • Create TAR.GZ in the parent folder containing all contents of the current & child folder:

    tar -czvf ../filename.tar.gz .

  • Create TAR.GZ in the parent folder containing just just JPG images contained in the current & child folder:

    tar -czvf ../filename.tar.gz *.jpg

  • Extract TAR.GZ file contents into current folder:

    tar -xzvf filename.tar.gz

    Create a TAR.GZ file, but Exclude two folders:

    tar -czvf ../filename.tar.gz . --exclude 'FolderA' --exclude 'FolderB'


Was this answer helpful?

« Back

Powered by WHMCompleteSolution