Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

    I have changed it to:

    tar uvpz $DRIVE/$TARGET_MACHINE > laptop.tar.gz

    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?



  2. #2
    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
    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

Posting Permissions

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