Results 1 to 9 of 9

Thread: Auto backup questions

  1. #1
    Join Date
    Feb 2010
    Beans
    50

    Question Auto backup questions

    Hi all.

    I'm attempting to do an automatic backup of an Ubuntu 9.04 server. I have the command to do the backup and it works swimmingly. However, this backup needs to be done weekly and backed up to a shared drive on a Windows 2003 server. I'm assuming I'd need a shell script to do this but I have no idea where to start. The process I'm trying to accomplish is as follows...

    1. Check to see if the shared drive is mounted
    2. If it is, move on. If its not, mount it, then move on.
    3. Perform the backup command (tar -blah blah blah)
    4. Exit

  2. #2
    Join Date
    Jun 2007
    Beans
    1,941

    Re: Auto backup questions

    bash and cron sound like what you need. If those guides don't help, do some googling... there's a ton of information about both out there.

    If you get stuck, come back and maybe we can poke you in the right direction

  3. #3
    Join Date
    Feb 2010
    Beans
    50

    Re: Auto backup questions

    So I think I've got the bash and cron bit handled. I can't figure out how to access the share via command line though. I have a share on the Windows Server 2003 called "linux_backup" which shows on the desktop of the Ubuntu server, but I can't find the share via command line. Any suggestions?

  4. #4
    Join Date
    Jun 2007
    Location
    Oklahoma City, OK
    Beans
    200
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Auto backup questions

    There is a command called smbmount that may do what you desire.

    It is in the package `smbfs`


    HOWTO: Mounting SMB/CIFS Shares:
    http://ubuntuforums.org/showthread.php?t=280473
    Te audire no possum. Musa sapientum fixa est in aure.

  5. #5
    Join Date
    Feb 2010
    Beans
    50

    Re: Auto backup questions

    Hmmm. I tried several different renditions of the command but I always get error 13(access denied). I'm not quite sure how to remedy this. Here's the command I've tried...

    Code:
    smbmount //server/share /backup -o username=username,password=password
    For server I used an IP and also tried a servername.

  6. #6
    Join Date
    Jun 2007
    Location
    Oklahoma City, OK
    Beans
    200
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Auto backup questions

    Are you on a domain?
    Te audire no possum. Musa sapientum fixa est in aure.

  7. #7
    Join Date
    Feb 2010
    Beans
    50

    Re: Auto backup questions

    The Windows Server is in a workgroup. Not sure if workgroup is synonymous with domain...

  8. #8
    Join Date
    Jun 2007
    Location
    Oklahoma City, OK
    Beans
    200
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Auto backup questions

    Quote Originally Posted by cwscribner View Post
    The Windows Server is in a workgroup. Not sure if workgroup is synonymous with domain...
    Are there any relevant entries in the Windows Event Log on the Windows Server?
    Te audire no possum. Musa sapientum fixa est in aure.

  9. #9
    Join Date
    Feb 2010
    Beans
    50

    Re: Auto backup questions

    Never did figure this out. Just wound up going with an external hard drive attached to each server for the time being.

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
  •