Results 1 to 4 of 4

Thread: Backup Script Request

  1. #1
    Join Date
    Nov 2009
    Beans
    141

    Backup Script Request

    Hi

    Could someone please write a bash script that will execute these commands one-by-one?

    rsync -av /home/hope/Desktop /media/HOPE
    rsync -av /home/hope/Music /media/HOPE
    rsync -av /home/hope/Pictures /media/HOPE
    rsync -av /home/hope/Videos /media/HOPE

    Thanks

  2. #2
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Backup Script Request

    Hallo.
    Maybe someone will come back with a precise answer.
    If not, go and have a bit of a read
    https://help.ubuntu.com/community/Be.../BashScripting
    https://help.ubuntu.com/8.04/serverg...llscripts.html

    there is a link on the second page to here
    http://tldp.org/LDP/abs/html/
    Michael

  3. #3
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Backup Script Request

    Code:
    #!/bin/bash
    rsync -av /home/hope/Desktop /media/HOPE
    rsync -av /home/hope/Music /media/HOPE
    rsync -av /home/hope/Pictures /media/HOPE
    rsync -av /home/hope/Videos /media/HOPE
    Cheesemill

  4. #4
    Join Date
    Nov 2009
    Beans
    141

    Re: Backup Script Request

    Wow! That was quick.

    Thanks Cheesemill! The script works.

    And thanks for the links, audiomick. I think I'll try to learn how to bash script.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •