From: | Tanstaafl <tanstaafl@×××××××××××.org> |
---|---|
To: | gentoo-user@l.g.o |
Subject: | [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron |
Date: | Mon, 31 Mar 2014 11:02:43 |
Message-Id: | 53394B1C.60907@libertytrek.org |
1 | Hi all, |
2 | |
3 | Ok, this is really irritating me... |
4 | |
5 | I have a script that simply performs some backups. The commands are like |
6 | this: |
7 | |
8 | # perform tar.tgz backup of /etc |
9 | tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc |
10 | |
11 | When I run this script manually, it does what it is supposed to, and the |
12 | resulting file is about 500K. |
13 | |
14 | When it runs from cron (roots crontab), it results in a 20 byte (empty) |
15 | file. |
16 | |
17 | So what am I missing/doing wrong? |
Subject | Author |
---|---|
Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron | Neil Bothwick <neil@××××××××××.uk> |
Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron | Helmut Jarausch <jarausch@××××××××××××××××.de> |
Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron | Daniel Frey <djqfrey@×××××.com> |
Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron | Alan McKinnon <alan.mckinnon@×××××.com> |