Backing up Scalix
Posted: Wed Apr 11, 2007 3:05 pm
Is it possible to tar up the /var/opt/scalix directory?
I wrote a script to do so but I'm not sure that this would serve as a proper backup or not.
script:
One thing I have noticed is that when taring up the directory it removed the leading /. Is this ok? If when doing a restore the / is not put back then something is going to be broken.
I also did the LVM in FC5. I didn't plan a backup in the process. So I currently have no drive space left on the server. I will have to srink the size of the partition and then put the data back or use an alternitive to backing it up like Rsync or taring to the windows fileserver.
Any help would be greatful.
I wrote a script to do so but I'm not sure that this would serve as a proper backup or not.
script:
Code: Select all
#!/bin/bash
###################################################
# #
# This is a Scalix server backup script that #
# will mount a shared directory on Xavier and #
# tar the /var/opt/scalix directory to that #
# mount point. #
# #
###################################################
# mount the shared directory of the server (this uses Samba because of the Window's FS)
mount -t cifs -o username=admin,password=password //xavier.domain.com/sysadmin /xavier/sysadmin
# Tar the /var/opt/scalix directory to the specified folder
tar -cvzf /xavier/sysadmin/Server\ Backups/scalix/scalix_`%s`.tar /var/opt/scalix/ >> /var/log/scalix_backup.log
#unmount the windows share
umount //xavier/sysadmin
One thing I have noticed is that when taring up the directory it removed the leading /. Is this ok? If when doing a restore the / is not put back then something is going to be broken.
I also did the LVM in FC5. I didn't plan a backup in the process. So I currently have no drive space left on the server. I will have to srink the size of the partition and then put the data back or use an alternitive to backing it up like Rsync or taring to the windows fileserver.
Any help would be greatful.