I'm working on creating a routine backup scheme and am having a problem
with creating a multi-volume backup with GNU tar 1.15 included with the
Ubuntu 6.06 Linux distro.
First I'd like to start with just using tar to create a full backup.
My destination device is either an external USB connected hard disk, or
a samba file share. The destination file system is FAT (2G limit!).
My goal is to do a full backup of the file system in 2G tarballs, with a
sequential number as part of the filename.
I run the following command as root:
tar -c -v -p -M -L 2097152 -f '/media/usbdisk/fullbackup' -X
'/media/usbdisk/backup.exclude'
--info-script='/media/usbdisk/backup.nextvol' /
I'm having a problem getting the --info-script. It successfully
launches the script, but I have no idea how to communicate between tar
and the script.
The documentation
(http://www.gnu.org/software/tar/manual/tar.html#Using-Multiple-Tapes)
shows a sh script example, but I'm using the bash shell.
Unfortunately, the example doesn't work in bash - the "file descriptor 3
(>&3)" seems to be invalid, and I don't see the tar environment
variables. I've created a dummy script that lists out the environment
variables (a "set" command) and there do not appear any TAR_*
environment variables.
I'm not yet a bash/tar/*nix guru, so that could be the problem. Is
anyone out there smart enough to solve the problem?
Thanks, Matt
_______________________________________________
Help-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-tar