[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Backup again!
- Subject: [cobalt-users] Backup again!
- From: kimbjork@xxxxxxxxxxxx
- Date: Tue Jul 31 02:49:55 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
-----Original Message-----
From: Jarle Søiland [mailto:cobaltmail@xxxxxxxxxxx]
Sent: Tuesday, July 31, 2001 4:03 PM
To: cobalt-users@xxxxxxxx
Subject: Backup again!
>The backup modules in the GUI on the raq servers are not an good solution
<snip>
>My question is, will not the following command take a complete backup
that
>can be restored if the server crash?
>
>tar -czvf /home/sites/home/users/admin/complete.tar.gz ./
I don't think you'd get enough for a complete restore.
<snip>
>I have now done 3 restores with Raq servers ( 2 Raq2 and one Raq4 and it
is
>hell ) I hope I newer have to do this again and need an solution for a
good
>backup.
>
>Jarle Soiland
>Mega 2000 AS
>www.mega2000.no
After researching a lot of the archives, I've globbed together something I
hope will do the trick. (Have not yet tested a restore.) It is a small
shell script with tips from a number of list authors, most notably Steve
Werby. The script uses ftpbackup which necessitates the use of another
ftp server, in my case I am using www.ibackup.com until I acquire another
server. ftpbackup is a fairly old program and can be hard to locate
because of many dead links. I could never get the rpm version to work but
the tarball compiles easily.
#!/bin/sh
ls -aR1 --full-time / > /home/ref/file_list.txt
tar cfp - /home/ref/file_list.txt | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.file_list-`date
+%Y-%m-%d`.tar.gz
tar cfp - /etc/*.conf | gzip | /usr/local/bin/ftpbackup -h www.ibackup.com
-u username -p password -b backup.etc-dir_conf-`date +%Y-%m-%d`.tar.gz
tar cfp - /usr/local/urchin3da/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b
backup.usr_local_urchin3da_conf-`date +%Y-%m-%d`.tar.gz
tar cfp - /etc/mail/ | gzip | /usr/local/bin/ftpbackup -h www.ibackup.com
-u username -p password -b backup.etc_mail-`date +%Y-%m-%d`.tar.gz
tar cfp - /etc/httpd/conf/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.etc_httpd_conf-`date
+%Y-%m-%d`.tar.gz
tar cfp - /etc/named/ | gzip | /usr/local/bin/ftpbackup -h www.ibackup.com
-u username -p password -b backup.etc_named-`date +%Y-%m-%d`.tar.gz
tar cfp - /root/ | gzip | /usr/local/bin/ftpbackup -h www.ibackup.com -u
username -p password -b backup.root-`date +%Y-%m-%d`.tar.gz
tar cfp - /home/spool/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.home_spool-`date
+%Y-%m-%d`.tar.gz
tar cfp - /etc/ssh/ | gzip | /usr/local/bin/ftpbackup -h www.ibackup.com
-u username -p password -b backup.etc_ssh-`date +%Y-%m-%d`.tar.gz
tar cfp - /home/sites/home/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.sites_home`date
+%Y-%m-%d`.tar.gz
tar cfp - /home/sites/site[1-9]/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.sites_1-9-`date
+%Y-%m-%d`.tar.gz
tar cfp - /home/sites/site1?/ | gzip | /usr/local/bin/ftpbackup -h
www.ibackup.com -u username -p password -b backup.sites_10-19-`date
+%Y-%m-%d`.tar.gz
Sorry for the length of this; obviously each 'tar' goes on a single line.
Any comments from those more knowledgeable regarding my file/dir
selections would be appreciated.
Kim Bjork
www.infoaxis.com