Davinci Backup
1.  Do a full backup using dar 
2.  Do a full backup via system-imager 
3.  Do a full backup using tar (excluding mount points) 

scp /var/lib/mysql 
scp /home/frank/dbBackups 

      ssh khai@ sudo tar -cf / --exclude /tmp --exclude /mnt --exclude /media --exclude /proc --exlude /sys --totals -v 

     ssh khai@ sudo tar -cf /my.cnf /root /etc /home /var /usr/local/repository /opt /usr/local/scripts --preserve --same-owner --exclude /var/lib/mysql 

--exclude /var/lib/dkms --exclude /var/lib/mysql --exclude /var/lib/systemimager --exclude /var/lib/slocate /var/lib/up2date  /var/lib/webalizer 

4.  Shutdown mysql, and scp /var/lib/mysql 

4. Gather the tar balls and license keys used to install fogbugz, fisheyes, cvs, mysql 
5.  Power off.  Pull out the drives.  Put in one new drive.  Boot up with Knoppix. 
6.  Copy the boot sector and partition table from staging, put it on the new drive. 
7.  Restart the machine.  Take out the Knoppix CD.  Put in the RedHat CD.  After you get through formating the partitions, reboot the machine (do not install any package) and remove the RedHat CD. 
8.  Boot using Knoppix 
9.  Mount the iso image and copy files 
10.  Reboot without Knoppix.  Assign IP address, hostname, and name server 
11. rm -f /etc/htpd/conf/httpd.conf 
12.  cd /home/code && rm -rf * 
13.  Extract /home from backup 
14.  Extract /etc from backup 
15.  Extract /home/code/* from backup 
16.  Extract /usr/local/repository from backup 
17.  Re-install mysql 
18.  Load the database 
19.  chkconfig on /etc/rc.d/init.d/executor 
20.  Install qmail 
21.  Look at /etc/rc.d/rc.local to see if it contains necessary envrionment variables for the background daemons. 
22.  Start apache (application and rewriter), background daemons, and test the application. 
23.  Install cvs, fishEyes, fogbugz (php4 onto separate directory), aspell, webalizer, dar, ZendDebugger (ZendPlatform should already be working, but need to get the license) 
24.  Run scripts in /code/devbin to see if they still work, check for missing CPAN modules 
25.  Add route for VPN 


--one-file-system (stay in local file system when creating an archive) 
-O, --to-stdout (extract files to standard output) 
-p, --same-permissions, --preserve-permissions (extract all protection information) 
-P, --absolute-paths (don't strip the leading / from file names) 
-s, --same-order, --preserve-order (list of names to extract is sorted to match archive) 
--same-owner (create extracted files with the same ownership) 
-T, --files-from=F (get names to extract or create from file F) 
--exclude FILE (exclude file FILE) 
-X, --exclude-from FILE (exclude files listed in FILE) 

--dereference (don't dump symlink, dump the file they point to) 

Installed packages: 

scp -p -r 

All files in /var/lib/mysql is own by mysql.mysql except for .err files 
For fogbugz and fishEyes, all we have to do is extract the files from backup 

to dump the  database mysqldump -u root 'database name' > 'file name' 
Frank F: 650 804 0865 

tar -cf home.tar /home --preserve --same-owner --exclude /home/zaid --exclude /home/code --exclude /home/frank --exclude /home/khai --exclude /home/logs --exclude /home/prog  --preserve --same-owner & 

tar -cf various.tar /my.cnf /root /etc /usr/local/repository /opt /usr/local/scripts --preserve --same-owner 
tar -cf slashvar.tar /var --exclude /var/lib/mysql --exclude /var/run --exclude /var/spool --preserve --same-owner & 
tar -cf prog.tar /home/prog --preserve --same-owner 
tar -cf logs.tar /home/logs --preserve --same-owner 
tar -cf khai.tar /home/khai --preserve --same-owner 
cp -R /home/code . &
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License