Jump to content
Prevail Web Management
  • Sign in to follow this  

    Web Site Backups

       (0 reviews)

    Michael

    Linux is a very powerful OS system. If you the user are on a Linux PC as well as working with a Linux Web Server there is a very easy solution for web backups. This easy solution if BASH script running program called "rsync". Rsync is a powerful backup / synchroniser program. This can work between local Linux PC and Linux server.  

    #!/bin/bash
    
    rsync -rtpogxvcsz --progress --delete --log-file=/var/log/backup.log -e ssh {username}@{domain name}:{path to web site} {path on local machine}

    Now there is a few things you need to set up.

    1. First you need to check with your hosting to see if SSH is possible. Like on iPage Shared Hosting this is not an option. GoDaddy.com does supply SSH ability. Check and see if SSH is available for your hosting.
    2. Now we need a local PC with Linux capable of login into the SSH on your server without using username or passwords. SSH keys provide a more secure way of logging into a server with SSH than using a password alone. Generating a key pair provides you with two long string of characters: a public and a private key. You can place the public key on any server, and then unlock it by connecting to it with a client that already has the private key. When the two match up, the system unlocks without the need for a password. 
    Sign in to follow this  


    User Feedback

    Create an account or sign in to leave a review

    You need to be a member in order to leave a review

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    There are no reviews to display.


×