Backup not all files included??

Discussion in 'General' started by statiic, Jan 18, 2007.

  1. statiic

    statiic New Member

    I made an backup with ispconfig, but now are my uploads dirs empty?? I uploaded some pictures to the folders by using an CMS. But these pictures arent in the backup. Does anyone know why?
    Does it make an backup of the recent status?? Or an few days ago or something like that?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The backup function under tools runs as user admispconfig, in case your CMS system creates files which are not readable for admispconfig, these files are not included in the backup.
     
  3. statiic

    statiic New Member

    LoL ok I knew that already. But how to solve the problem. Cause else its pointless making backups. If you cant backup everything :)
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must make the files readable by admispconfig.
     
  5. statiic

    statiic New Member

    mm ok, but how do I do that?

    Do I need to login on ftp and change every file by hand?

    Or is their an way I can do it all at once for every website?
     
  6. edge

    edge Active Member Moderator

    If you have SSH access you could CHOWN all the files / folders in one go!
    Make sure you do not CHOWN the wrong files!
     
  7. sjau

    sjau Local Meanie Moderator

    edge, well if the files belong to admispconfig he can't chown them to his user... root or admispconfig would have to do that...
     
  8. edge

    edge Active Member Moderator

    LOL.. Must be the way I think.. I'm always root on my system..
    So let's rephrase...

    If you have root SSH access you could CHOWN all the files / folders in one go!
    Make sure you do not CHOWN the wrong files!

     
  9. statiic

    statiic New Member

    UHHH. NOw I get an bit confused.

    When I upload my files as an website client. I can backup those, but when I login to the CMS and upload some files by using the scripts. They cant be backupped. So only the files which are inserted into the upload folder cant get backupped.

    Even with this chown stuff I have to do it for each client seperatly. There should be an much easier way to backup all the websites with all the files.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Yes, set $go_info["server"]["do_automated_backups"] to 1 in /home/admispconfig/ispconfig/lib/config.inc.php. This backup is run as root, so it doesn't matter who owns your files.

    Or take a look at the tutorials in the Backup category: http://www.howtoforge.com/taxonomy_menu/1/34
     
  11. statiic

    statiic New Member

    Thx falko, but there is nothing what I need in there.

    About this automated backup. I cannot find any information about that on the ispconfig site or here.

    So If I set it to 1. Will it backup all my clients and their files and databases?
    And where does it export too?

    Why cant the dev write ispconfig to login as root by filling in my pass and username when I manually backup my stuff.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    This one shold work for you: http://www.howtoforge.com/mirroring_with_rsync

    Yes.

    To the backup directory of the respective web site, e.g. /var/www/web1/backup/.

    Because Apache (and therefore also ISPConfig's Apache) does not run as root.
     
  13. statiic

    statiic New Member

    haha. Thx,

    But the link doesnt go for me. I have 3 harddrives 2 raid 1 and 1 hotspare.

    But I want to backup to my computer back home. So if something happens to the datacenter I still got an backup back home. Thats why I asked for an good backup function.

    Or if you do know an way to get everything downloaded on my system by using putty?? So I login with putty to the server as root and I can somehow grab all the user files. Including database and download them to my computer back home. Thats fine too :)

    Let me know
     
  14. martinfst

    martinfst Member Moderator

    The solution I use is to create a local .tar.gz file in which I include everything I need to have a backup of. This is generated nightly (at 04.00) by a custom written script and stored locally on the server in the datacenter.

    At 6.30 I have a cron script on a remote server (at my office) which 'pull's intelligently the prepared .tar.gz file with scp. The authentication is don with selfsigned certificates, so no manual password entering required.. After a successful transfer, it deletes the backup of the previous day. On my office systems I keep 1 month of backups.

    Yeah I know, home written and not embedded in ISPConfig. But I created the script before I started to use ISPConfig :)
     
  15. sjau

    sjau Local Meanie Moderator

    statiic

    What OS do you have at home?
     
  16. statiic

    statiic New Member

    Windows vista ;)
     
  17. falko

    falko Super Moderator Howtoforge Staff

    But the second ISPConfig backup function (the one that runs as root) should work for you. Have you tried it?
     
  18. sjau

    sjau Local Meanie Moderator

    Statiic

    You can setup a rsync server on windows with cygwin...

    Here are some howtos:

    http://optics.ph.unimelb.edu.au/help/rsync/rsync_pc1.html

    http://www.brentnorris.net/rsyncntdoc.html

    http://www.gaztronics.net/rsync.php

    http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

    http://www.novell.com/coolsolutions/appnote/14729.html

    http://www.novell.com/coolsolutions/trench/8921.html

    http://www.captain.at/howto-rsync-linux-windows.php

    I don't know which ones will suit what you need.. but once you have setup rsync as demon and exchanged ssh keys so that auto-login works then you can uses the tutorials in the backup section here...
     
  19. statiic

    statiic New Member

    YEs the backup function of ispconfig will work. But it will stock up my harddrives fastly :)

    So I will have to find another nice way.
     
  20. sjau

    sjau Local Meanie Moderator

    As said, making backups to your computer instead of the server's harddrive...
     

Share This Page