On Thu, Aug 02, 2001 at 12:10:48AM -0400, Dale kosan <[EMAIL PROTECTED]> wrote:
| I am trying to right a script to do a tar of a directory and I am having 
| problems writing it. I do not know where to look for help on this. The only 
| thing I want to do is: tar cvzf /shared/backup /home/someuser

And there's something wrong with that? Try this:

        #!/bin/sh
        tar cvzf  /shared/backup /home/someuser

Broadly speaking, if you can type it on the command line you can put it in a script.
Or do you want to make per-user backups?

        #!/bin/sh
        for user
        do  tar cvzf /shared/backup/$user.tar.gz /home/$user
        done

Cheers,
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

I am not a free man, I am a number. - Beirne Konarski <[EMAIL PROTECTED]>



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to