Results 1 to 6 of 6

Thread: Problem with read-only backup

  1. #1
    Join Date
    May 2013
    Beans
    13

    Problem with read-only backup

    I am trying to put together a bash script to backup a few NFS shares. I am still working through this and have been learning bash as I go. The shares are mounted as read-only. The script uses rsync to copy files from the NFS device to a Drobo mounted over iSCSI. I ran a test backup and it didn't really work, but now I can't get rid of the backup files because they are read-only. I have tried changing the permissions, but when i try:
    Code:
     rm -rf <directory>
    , I get a long print out of each file like:
    Code:
    cannot remove <file> read-only filesystem
    . Right now I just want to delete these backups, later I will worry about reworking my script. Does anyone have any advice?
    Last edited by dan08; May 14th, 2013 at 08:14 PM.

  2. #2
    Join Date
    Apr 2006
    Beans
    569
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Problem with read-only backup

    Code:
    sudo rm -rf <directory>

  3. #3
    Join Date
    May 2013
    Beans
    13

    Re: Problem with read-only backup

    I did use sudo, I accidentally left that out in the post. But I actually figured out where the problem is. I had mounted the Drobo as read only, and therefore could not edit anything I put onto it. Thanks anyway.

  4. #4
    Join Date
    May 2013
    Beans
    13

    Re: Problem with read-only backup

    Hey I'm new to this forum. How do I mark this as solved? I don't want to waste anyone's time with my stupid mistake.

  5. #5
    Join Date
    Aug 2011
    Location
    Melbourne, Australia.
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Problem with read-only backup

    Quote Originally Posted by dan08 View Post
    Hey I'm new to this forum. How do I mark this as solved? I don't want to waste anyone's time with my stupid mistake.
    Hi,

    You mark as solved in your first post, as in -

    https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

    Cheers -
    PopularPages - a very useful search tool used by many !

    Wiki Discussion Thread

  6. #6
    Join Date
    May 2013
    Beans
    13

    Re: Problem with read-only backup

    Cool Thanks

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
  •