Skip to content
No frills - Tips & Tricks on Magento, Wordpress, CakePHP, Amazon EC2, Rackspace, DigitalOcean, Linode and more
  • About
  • Contact Us
  • Privacy Policy
  • Code Snippets

    1. Home>
    2. Code Snippets

    Copying Multiple Files using SCP

    • Post author:cliper
    • Post published:January 20, 2011
    • Post category:Blog
    • Post comments:0 Comments

      For the rest of my Linux experience, I've been doing a lot of backups. One tool that I can rely on is "scp" (Secure Copy). Well, I'd recommend this…

    Continue ReadingCopying Multiple Files using SCP

    Backup/Restore mysql databases using mysqldump

    • Post author:cliper
    • Post published:December 8, 2010
    • Post category:Blog
    • Post comments:0 Comments

    Sometimes we want to have a dump of all our databases in mysql and restore it later to somewhere else or in the same server. here’s how... In your terminal:…

    Continue ReadingBackup/Restore mysql databases using mysqldump

    Excluding files and folders with tar

    • Post author:cliper
    • Post published:December 8, 2010
    • Post category:Blog
    • Post comments:0 Comments

    Excluding files/folders using tar is very straight forward. Assuming we have a directory tree similar to this in Linux -/home/cliper/ |--- folder/ |--- file1 |--- file2 |--- folder and we…

    Continue ReadingExcluding files and folders with tar

    Get Magento’s database configuration

    • Post author:cliper
    • Post published:December 7, 2010
    • Post category:Blog
    • Post comments:0 Comments

    On Linux, make a php file anywhere in your filesystem while including the magento Mage file. <?php require_once "/home/cliper/magento/app/Mage.php"; Mage::app(); $config = Mage::getConfig()->getResourceConnectionConfig("default_setup"); $dbinfo = array(“host” => $config->host, “user” =>…

    Continue ReadingGet Magento’s database configuration

    Rebuilt Magento Indexes in terminal with php-cli

    • Post author:cliper
    • Post published:December 7, 2010
    • Post category:Blog
    • Post comments:0 Comments

      For the past 6 months, had been doing a lot of work with Magento. I’ve notice that the more I know the whole thing, the more I don’t want…

    Continue ReadingRebuilt Magento Indexes in terminal with php-cli
    • 1
    • 2
    • Go to the next page

    Recent Comments

      Copyright - OceanWP Theme by OceanWP