Allround Webdevelopment

Header Menu

Blog

Search for:

Create tar files archive of files on server using PHP script

02/19/2015

In this article we will share a nice little script we made to easily achive all files and folders (or certain directories) into a single compressed .tar file. This is ideal for moving your site between servers or to backup your complete server contents into a single file. It works fast and neat using PHP`s Phar. Make sure to also checkout our script to easily extract this archive on your server via another simple PHP script. Here`s how to use it:

Please note that the script wil by default tar all files and (sub)folders from the directory you uploaded the script to, into a file named archive.tar. You can overwrite the directory and archive name by calling the script with your own parameters, like this (replace the italic text for your own needs):
www.yourwebsite.com/archiver.php?targetname=achivename.tar&dir=relative/folder/to/put/in/archive/

Recent posts

Testimonial

TigerMin is a very strong and powerful tool for managing your products. Due to the highly efficient interface you can add and edit products real fast and real simple.

John G.

About

Emvee Solutions is a webdevelopment company from the Netherlands. We are a group of enthousiastic developers, always looking for new and innovative products (plugins & extensions). We are specialized in Magento & Wordpress development.

Our products

We provide:

Money back guarantee (15-days)

Good and quick support

Onetime payment, lifetime usage

Proven, safe and well tested code

Helpdesk

Please contact us if you have any problem or question about one of our products. Find out how to contact us on our support page.