backup website zip

Discussion in 'General' started by mccharlet, Jan 2, 2014.

  1. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi,

    Why you use zip for the website backup and not tar.

    With tar, you can backup the permission, owner and group.


    Best regards
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You can define tar + gzip for your backups. afaik its "Backup all files in web directory as root user". But as long as you use the inteface to restore a backup there is no difference between zip and tar.
     
  3. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You can chose the method of backup in the admin settings.
    ZIP or tar.gz

    Zip is widely spread among windows users and lots of hosting customers are windows users - so zip is a good choice there.
     
  4. mccharlet

    mccharlet Member HowtoForge Supporter

    Thanks,

    For windows, they're more free software for this extension. 7-zip by example

    Best regards
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Sure, but you will get support calls from your customers and have to tell them to install 7zip ;) and the backup mode is different, the zip mode is more secure in hosting enviroments as this mode stores only files tht were owned by the web user while the tar.gz mode contains all files in the web directory.
     
  6. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi

    Till, if i understand, not all files are backup with the zip mode. By example a file created by the apache process, it's not backup ?

    I prefers the tar for backup the permission and I'm sure all files are backup.

    Bests regards
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    There should be no files owned by apache in your site if you use the correct settings. apache wont be able to write into the site anyway and alle files created by php scripts are onwed by the web user when you use the recommended php mode(s) php-fcgi or php-fpm together with suexec.

    The drawback is just that in case a user is able to create a hardlink (not symlink!) e.g. to /etc/shadow, then he will be able to download this file as part of his backup as the backup contains all files, even if they are owned by root.
     
  8. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi,

    I followed your suggestion. I change a website with php-FPM (before i use mod_php)

    But the website didn't work

    I have this page

    mark('afterLoad') : null; // Instantiate the application. $app = JFactory::getApplication('site'); // Initialise the application. $app->initialise(); // Mark afterIntialise in the profiler. JDEBUG ? $_PROFILER->mark('afterInitialise') : null; // Route the application. $app->route(); // Mark afterRoute in the profiler. JDEBUG ? $_PROFILER->mark('afterRoute') : null; // Dispatch the application. $app->dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $_PROFILER->mark('afterDispatch') : null; // Render the application. $app->render(); // Mark afterRender in the profiler. JDEBUG ? $_PROFILER->mark('afterRender') : null; // Return the response. echo $app;


    It's a joomla website (no htacces configured)

    Best regards
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    php-fpm works fine with joomla, but it might be that php-fpm is not installed on your server. Try php-fcgi and check the error.log of the website.
     
  10. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi

    Yes it's better if it is installed

    Thanks
     

Share This Page