Results 1 to 4 of 4

Thread: copy to a network share without mounting it

  1. #1
    Join Date
    Aug 2006
    Beans
    16

    copy to a network share without mounting it

    Yo Ubuntonians,

    I backup my linux box to a smb or nfs share. I have the share mounted in /mnt/mybackupdir and at some point in time since these servers rarely get rebooted the mounted share is no longer valid. Then everything is backed up local and not to my share and I may not know until a month or more when I happen to catch it )-:

    What are some of the solutions you use to overcome this issue?

    Can I copy direct to a network share without mounting it? Both smb and nfs?
    Last edited by ridshack; July 1st, 2009 at 05:54 PM.

  2. #2
    Join Date
    Oct 2005
    Location
    Vienna, Austria
    Beans
    265
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: copy to a network share without mounting it

    If you have root-access to the server, you can try running an ssh server there and transfer the to-be backuped files via ssh. Other means of transfer, such as rsync, maybe even ftp might be an option.

    Probably a more simple workaround is to re-mount the share just before running the backup script, to make sure it is mounted properly, or at least try to determine whether the filesystem is still mounted prior to starting the backup script.

    Good luck,
    Schilcha

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: copy to a network share without mounting it

    rsync would be a better back up solution.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Aug 2006
    Beans
    16

    Re: copy to a network share without mounting it

    Thanks for the reply... Maybe Ill setup a cron to remount a few minutes before the backup job and email me if it fails.

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
  •