On Wed, Dec 05, 2001 at 05:20:19PM +0100, Nicolae Mihalache wrote: > Jean-Louis Martineau wrote: > > > > On Tue, Dec 04, 2001 at 09:37:08PM +0100, Nicolae Mihalache wrote: > > > Hello! > > > > > > I'm using amanda for tapeless operation (using "file:" types) and write > > > the data created on DVD. When I try to resore directly from DVD using > > > amrestore, it complains that the DVD is mounted read-only. I've seen > > > that it tries to open the info file in read-write mode, is this really > > > needed? What if the info file remains unchanged during restore? > > > > You should write only the 'data' directory to the DVD. > > The 'info' file need to be r/w. > > > And how do I restore directly from DVD if the info file is not there? > Amanda will still try to create it. Maybe by making a symbolic link to > the data directory from a writable file system that will be set as > restore tape.
Or you can mount de DVD on the data directory. > Anyway I found a tricky solution to this problem. I create the info file > as a symbolic link to /tmp/info (or other file). > Then amrestore, will open the /tmp/info, that is writeable. > For symbolic links on iso9660, I guess that the Rockridge extension is > needed. But that was needed anyway for the filenames that amanda creates > in data directory. That's dangerous, anybody can create /tmp/info with a symbolic to any file other file. I hope you don't run amanda as root or bin? > > I'm preparing an amanda configuration for someone with little sys admin > knowledge, and I want that restore be as simple as possible. For this, I > use a "multi-tape" configuration with backup in multiple directories, > and after amdump is run, a script takes the backup and put the data on > DVD. It also update another file that contains the mapping between > "tapes" and DVDs. For the restore, I've modified a little bit amrecover > and amindexd to send together with the tape, the media on which that > tape is. And also amrestore will run amtape to assure that the correct > tape is in the drive. That means setting a symbolic link from the > tapedev that is defined in amanda.conf to the right directory. > So for restoring one only need to put the correct media inside and to > mount it over the backup directory, and all the restore will be done > automatically. > If someone is interested in my setup, please tell me, I'd be glad to > help. > > > mache -- Jean-Louis Martineau email: [EMAIL PROTECTED] Departement IRO, Universite de Montreal C.P. 6128, Succ. CENTRE-VILLE Tel: (514) 343-6111 ext. 3529 Montreal, Canada, H3C 3J7 Fax: (514) 343-5834