Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

tar woes

  • 14-02-2003 4:29pm
    #1
    Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭


    got a problem with tar guys.

    I'm setting up a simple cron.daily script called "userdirs" (chmod 755 - owned by root) with the following in it:
    #!/bin/sh
    tar -zcvpf /var/backup`date '+%d-%b-%Y'`.tar.gz --directory /home/
    

    All it's doing is creating a compressed tar file of the contents of the /home directory with file permissions saved. The size of the /home dir is less than 13mb.

    Since the cron job didn't run, I put it into a file of the same name to run from the command prompt. Now, everytime I try to run this script I get the following error:

    $prompt-> ./crontest
    tar: Cowardly refusing to create an empty archive

    Any ideas? I can't spot anything wrong with my script. And I'm running it from a root prompt also.


Comments

  • Closed Accounts Posts: 286 ✭✭Kev


    get rid of the --directory bit


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    I thought the topic read "TOE WARS!" I was getting excited.

    .logic.


  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Originally posted by logic1
    I thought the topic read "TOE WARS!" I was getting excited.

    .logic.

    perv :p

    AHA ... my little pinkie challenges your little pinkie to a duel ...... and ..


    oh that sounds so bloody dodgy I'll stop there :D


Advertisement