Backup remote server (ISPconfig host)

Discussion in 'Tips/Tricks/Mods' started by Franz, Aug 17, 2009.

  1. Franz

    Franz Member

    Yes, add user to sudoers file with NOPASSWD option, and all comands start with
    Code:
    sudo command 
     
  2. ikrudolf

    ikrudolf Member

    How to make a backup from / ? (so the whole system).
    I only have
    in the lista.txt file but it doesn't seem to work. Last night it only backupped the databases.
     
  3. ikrudolf

    ikrudolf Member

    Another question. What if I want this script to backup to a local folder? Is this a possibility?
     
  4. ikrudolf

    ikrudolf Member


    I guess just changing the
    in Franz his script will do it to backup locally.

    My idea was to colocate 2 servers in the datacenter, but for the beginning this is to expensive for me. So I will start with colocate 1 server in the datacenter, create the backups in a local folder and copy them to the computer at home.

    Any other suggestions are welcome :)

    Rudolf.
     
  5. ikrudolf

    ikrudolf Member

    Backups are finished, just checked, all files have been written to the local folder. But at the end the script gives me this error:

    What does it mean?
     
  6. jcombs_31

    jcombs_31 New Member

    The script is works well, but you should fix these lines on your blog

    # $SSH $MYSQLDUMP
    log "Dump OK. Starting SCP"
    # $SCP/mysql-$i-$datum_x.sql.bz2 $dirname/

    you have them commented out.

    Some syntax indentation would make it more readable.
     
  7. jonedan

    jonedan New Member

    Hey,
    That was the ticket Tibor, thanks! Ensuring that both boxes use the same account/password for the SQL Server service did the trick. Backups are now running properly between the servers. Again, many, many thanks!
     
  8. Franz

    Franz Member

    world press remove TABS :(
     
  9. Castrichella

    Castrichella New Member

    cheapest remote server hosting service

    I want to get a service that allow me to control a remote server and do things like surfing the internet plus installing Windows program.

    I think it called dedicated server but I want something cheap per month and surf web using it.
     
  10. ikrudolf

    ikrudolf Member

    Hi Franz,
    When I want to do step 3 on the remote server
    cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2

    I get this error:
    “bash: /.ssh/authorized_keys2: No such file or directory”.

    What should I do?

    Rudolf.
     
    Last edited: Apr 15, 2010
  11. falko

    falko Super Moderator ISPConfig Developer

    Are you sure you typed in the ~ before /.ssh/authorized_keys2?

    Code:
    cat /tmp/id_dsa.pub >> [COLOR="Red"]~[/COLOR]/.ssh/authorized_keys2
     
  12. ikrudolf

    ikrudolf Member

    Yes Falko I did that.

    Any ideas to get this fixed?

    Rudolf.
     
    Last edited: Apr 16, 2010
  13. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /root
    ?
     
  14. ikrudolf

    ikrudolf Member

    This is the output:

     
  15. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    mkdir /root/.ssh
    chmod 700 /root/.ssh
    Then try again.
     
  16. ikrudolf

    ikrudolf Member

  17. falko

    falko Super Moderator ISPConfig Developer

    Did you enable the root account (i.e., set a root password)?
    Are root logins allowed in your SSH configuration (etc/ssh/sshd_config)?
     
  18. ikrudolf

    ikrudolf Member

    Falkon,
    In the sshd_config is sais "PermitRootLogin yes" and the root password is set.
     
  19. falko

    falko Super Moderator ISPConfig Developer

    Hm... What's root's shell (it's listed in /etc/passwd)?
     
  20. ikrudolf

    ikrudolf Member

    Falko,
    It's like this:

     

Share This Page