Backup ispconfig domain

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Jun 30, 2020.

  1. Tom John

    Tom John Member HowtoForge Supporter

    Hi Guys,
    i am using ISPConfig 3.1 and Ubuntu 18.04
    Long time before i setup a backupserver. The ssh data changed for this server and now i am looking where i can setup in ISPConfig
    Servername for Backup
    Username for backupserver
    Folder where to put the backup


    it would be great if you could help me...
    thanks a lot
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not a setting in ISPConfig. Either you mounted the backup directory permanently outside of ISPConfig or you used the file /usr/local/ispconfig/server/scripts/backup_dir_mount.sh to mount it dynamically when required.
     
  3. Tom John

    Tom John Member HowtoForge Supporter

    Hi,
    thanks for your kind answer.
    i have the script backup_dir_mount.sh
    Code:
    #!/bin/bash
    sshfs [email protected]:/backups/server4/ /var/backup
    
    
    and i get the following error:
    Code:
    [email protected]:/usr/local/ispconfig/server/scripts# ./backup_dir_mount.sh 
    fuse: mountpoint is not empty
    fuse: if you are sure this is safe, use the 'nonempty' mount option
    [email protected]:/usr/local/ispconfig/server/scripts# client_loop: send d
    
    do you have any idea whats the problem?
    thanks again for your kind help
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    According to the error message, the directory /var/backup is not empty.
     
  5. Tom John

    Tom John Member HowtoForge Supporter

    Hi,
    thanks for answering.
    Yes that was the problem. Now there is not THIS error message but i have another problem:
    Code:
    [email protected]:~# sshfs [email protected]:/backups/server4/ /var/backup
    [email protected]:/backups/server4/: No such file or directory
    [email protected]:~# 
    
    
    so i login to the backup server and i can see the directory /backups/server4
    Code:
    [email protected]:~$ ls
    backups
    [email protected]:~$ ls backups/
    server4
    
    
    can you help me what is my problem with that?
    thanks a lot for your kind help always.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Looks like the backups directory is not at root of file system. It is subdirectory of users home directory. Compare the two commands below, the latter one should work.
    Code:
    # sshfs [email protected]:/backups/server4/ /var/backup
    # sshfs [email protected]:backups/server4/ /var/backup
     
  7. Tom John

    Tom John Member HowtoForge Supporter

    ok that works, but i get another problem.
    I try to copy me old files to /var/backup which is now the mount of my backup server and i get the following error:
    Code:
    [email protected]:~# mv /var/backup-old/* /var/backup
    mv: failed to preserve ownership for '/var/backup/serverfiles/2020-06-28/alldb.gz': Permission denied
    
    
    what is my problem here?
    thanks again for your help
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not know. And I do not like guessing games.
    What you yourself can do is see what are owners and permissions in /var/backup-old/ and /var/backup.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Your backup system seems to be from Schaal @It, why don't you ask Florian how to mount it correctly in ISPConfig, he can probably just give you the needed commands to use his backup system in ISPConfig.
     
  10. Tom John

    Tom John Member HowtoForge Supporter

    Hi,
    yes good idea but unfortunately he does not answer my emails. All backups were gone so i need to install all new but he not answer. Maybe i look for other backup space if you can recommend some it would be great.
    thanks
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    I run my own backup servers, so I can't recommend you any provider. I'll send Florian an email to see if he has some instructions for you.
     

Share This Page