John Weez wrote: > > I have a simple crude script which i use to backup some data. > > I use shell escapes to mount my jazz drive..then tar the data on to the > jazz drive...then i attempt to unmount the jazz drive... > > here is what happens... > > the program seems to work..the files are saved in /mnt/jazz and i can view > the tar archives..etc...even untar them...BUT OLd data i saved on the > drive is not listed anymore when i use an ls from linux. > > then when i unmount the drive..all teh data is not there anymore but OLD > data i wrote to the disk is there. > > It alsmost seems that the mounting of my jazz drive from perl creates some > type of ramdisk instead of saving it to the jazz disk... > > Is there something i am missing?? The code follows... > > #!/usr/bin/perl > > $mount_jazz = `mount /mnt/jazz`;
Here you mount /mnt/jazz and store the standard output from mount in the variable $mount_jazz. > $unmount_jazz = `umount /mnt/jazz`; The next thing you do is unmount /mnt/jazz and store the standard output from umount in the variable $unmount_jazz. Perhaps you should run this at the _end_ of your program. > $backup_spool = `tar -cf /mnt/jazz/backup_spool.tar /var/spool/`; > $backup_rootmail = `tar -cf /mnt/jazz/backup_rootmail.tar /root/mail`; > $backup_adamchrmail = `tar -cf /mnt/jazz/backup_adamchrmail.tar /home/adamchr > $backup_etc = `tar -cf /mnt/jazz/backup_etc.tar /etc`; > $bzip_jazz = `bzip2 -kf /mnt/jazz/*.tar`; > $erase_tar = `rm -f /mnt/jazz/*.tar`; > > #$mount_jazz; > $backup_spool; > $backup_rootmail; > $backup_adamchrmail; > $backup_etc; > $erase_tar; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]