Find the answer to your Linux question:
Results 1 to 3 of 3
I am running a bash script that allows for backups. Right now it will do full backups of windows shares, but I am looking to incremental, so I just want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    18

    tar options problem


    I am running a bash script that allows for backups. Right now it will do full backups of windows shares, but I am looking to incremental, so I just want to update the tar files that are created. Here is the code I am using for the full backups:

    tar cvpz $DRIVE/$TARGET_MACHINE > laptop.tar.gz
    rm -rf $DRIVE/$TARGET_MACHINE

    I have changed it to:

    tar uvpz $DRIVE/$TARGET_MACHINE > laptop.tar.gz
    rm -rf $DRIVE/$TARGET_MACHINE

    and get the error:

    "tar: options '-Aru' are incompatible with '-f-'

    I know that u is to update and that you can't use u and c together. Does anyone have an idea how I would fix this?

    Cheers,

    Dennis

  2. #2
    Just Joined!
    Join Date
    Jun 2004
    Posts
    13
    I tried too, and the same. you have to add - :
    type tar -uvpz TOTO > toto.tar.gz
    Should work

  3. #3
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    You could just use smbtar. I've never used it, but I know it is designed to backup Windows shared folders. Might make it easier on ya.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  4. $spacer_open
    $spacer_close

Posting Permissions

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