next up previous contents
Next: storeBackupCheckBackup.pl Up: Components / Programs to Previous: storeBackupDel.pl   Contents


storeBackupMount.pl

storeBackupMount.pl gives you a ``script'' to mount the needed directories for the backup, start storeBackup.pl and umount the directories. Before trying to mount, it can check via ping if a server is reachable. If these directories are always (or already) mounted, there is no need to use storeBackupMount.pl.

       storeBackupMount.pl -c configFile [-s server] [-l logFile]
       [-d] [-p pathToStoreBackup] [-k killTime] [-m] mountPoints...

To be able to mount the directories, you need an entry in /etc/fstab like the following ones:

/dev/sda5		/add		reiserfs	noatime		0 1
lotte:/disk1 /backup nfs rsize=8192,wsize=8192,user,exec,async,noatime 1 1

The first mount point /add is on a local device. In this example, it's the device with a file system to be saved. The second one (/backup) is located on /disk1 on the nfs server lotte. The rest are nfs parameters -- see section 5.7 about the configuration of nfs.
If you have these kind of entries in /etc/fstab, you can mount the file systems with:
mount /add
mount /backup
and that's exactly what storeBackupMount.pl does.

You must at least configure option --configFile.
The command line options storeBackupMount.pl accepts are:

--server / -s
Name or ip address of the of the nfs server. Default is ``localhost''. This name is used for pinging.
--configFile / -c
Configuration file for storeBackup.pl. StoreBackupMount.pl reads option logFile from the configuration file of storeBackup.pl. If this log file is different from the one specified for this program, then the storeBackup.pl log file is read online and the lines are printed into the log file of storeBackupMount.pl. This is especially useful if the log from storeBackupMount.pl is directed to stdout.
--logFile / -l
Log file for this process, default is stdout. You can log into the same log file as storeBackup.pl. If storeBackup.pl writes to stdout, this output will be redirected into this log file, but not till then it finished.
--debug / -d
Generate some extra messages.
--pathStbu / -p
Path to storeBackup.pl. Has to be set if storeBackup.pl is not in your environment variable $PATH.
--killTime / -k
Time until storeBackup.pl will be killed if it didn't finish before. The time range has to be specified in format `dms', eg. 10d4h means 10 days and 4 hours.
Default are 365 days.
--keepExistingMounts / -m
If some mounts already exists at starting time of the program, do not umount these mounts after running storeBackup.pl.
...mountPoints...
List of mount points needed to perform the backup. This must be a list of paths which have to be defined in /etc/fstab.
exit status:
 
0
everything is fine
1
error message from storeBackup.pl
2
error from storeBackupMount.pl
3
error from both programs


next up previous contents
Next: storeBackupCheckBackup.pl Up: Components / Programs to Previous: storeBackupDel.pl   Contents
Heinz-Josef Claes 2009-07-18