 |
 |
 |
 |
www.partimage.org Partimage forums
|
 |
 |
 |
 |
 |
| Author |
Message |
Vermyndax
Joined: 16 Jun 2004
Posts: 3
|
Posted:
Wed Jun 16, 2004 7:55 pm |
  |
I have a cron job trying to run partimage with -b (v0.6.4... 0.6.4-r1 built from Gentoo Portage, actually).
I get a "TERM environment variable not set" error.
I thought the -b command line switch allowed you to get around this?
I tried applying the fully-batch-mode.patch but it was for 0.6.2 and failed to patch the source. |
|
|
    |
 |
DW
Guest
|
Posted:
Thu Jun 17, 2004 9:30 pm |
  |
|
|
 |
Vermyndax
Joined: 16 Jun 2004
Posts: 3
|
Posted:
Mon Jun 21, 2004 5:58 am |
  |
That thread you posted doesn't seem to really answer the question... except to say that maybe I'm just not going to get partimage to work from a cron job and it's planned for future development? |
|
|
    |
 |
DW
Guest
|
Posted:
Mon Jun 21, 2004 9:35 pm |
  |
|
|
 |
Vermyndax
Joined: 16 Jun 2004
Posts: 3
|
Posted:
Mon Jun 21, 2004 11:24 pm |
  |
Well, tried redirecting the output to a file... and the output said the same thing - TERM variable must be set. :( |
|
|
    |
 |
DW
Guest
|
Posted:
Wed Jun 23, 2004 12:56 am |
  |
I've had a bit of a look at the source code (but I am flat out spelling C, let alone programming in it.).
It looks like the "Fully batch mode" patch is already in 0.6.4 It would also appear that the way to use it is via the -B option (not to be mistaken for the -b option).
The -B option wants a "challenge response string", but I don't understand just what that is. |
|
|
|
 |
DW
Guest
|
Posted:
Wed Jun 23, 2004 9:39 pm |
  |
I don't think that the value for the -B option does anything, but it does need to be there.
In other words you need to use -B=something , but partimage does not seem to care what "something" is. So try:
partimage -B=foo save -z1 -f3 -b -d /dev/hda1 /mnt/backup/`date +%d%b%G`.pi064.gz |
|
|
|
 |
|
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB
© 2001, 2002 phpBB Group :: FI Theme
All times are GMT
|