This is a discussion on BACKUP IN LINUX ????? within the Linux software forums, part of the Linux Getting Started category; well my linux box is configured to backup by Mondo Archieve. My problem is that i am not familiur with ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
well my linux box is configured to backup by Mondo Archieve.
My problem is that i am not familiur with linux so as Mondo, I am handling this box as additional stuff in my job. Recently my tape drive stops working due to some mechenical problem. Now we are not using tape drive anymore and there is no backup of my linux box which is really a ALARM for me. tell me what should i do now. how i check mondo configurations. can i store backup on Network path as i have a powerful server in my network with more then 100GB spare space on HDD. how i can do it. also i need to know which file should be backup i am running squid, intranet website, samba, gnokii on this linux box |
| Sponsored Links | ||
|
|
|
||||
|
You can make backup using various commands. To make a full backup of entire system use dump command.
Each Sunday night full backup Following command backups all user data stored in /home, /var/www is web root for web sites and /etc is configuration directory. I use tar command to backup all important directories: Code:
tar -zcvf /backup-22-04-2006.tar.gz /var/www /home /etc Rest of weekdays I just make an incremental backup and than again ftp to NAS server: Code:
tar -g /var/tar.inc.log -zcvf /backup-23-04-2006.tar.gz /var/www /home /etc mysqldump -u madmin -h localhost -p mypassword db1 | gzip -9 > db1.gz And I upload this backup to NAS using ftp Backup arranged as follows: Full-backup == Sunday backup System-backup = everyday incremental backup for both MySQL and directories Code:
drwxr-xr-x 5 ftpusers ftpusers 4096 Aug 6 00:14 full-backup drwxr-xr-x 34 ftpusers ftpusers 4096 Aug 10 00:15 system-backup Code:
drwxr-xr-x 2 ftpusers ftpusers 4096 Aug 6 00:15 06-08-2006 drwxr-xr-x 2 ftpusers ftpusers 4096 Jul 28 06:17 28-07-2006 drwxr-xr-x 2 ftpusers ftpusers 4096 Jul 30 00:19 30-07-2006 MySQL backup - http://bash.cyberciti.biz/backup/mysql-backup.bash.php http://bash.cyberciti.biz/backup/mybackup.php If you want i will upload the ftp automated backup script when i will get back to home let me know... |
|
||||
|
Chk out:
http://bash.cyberciti.biz/backup/wizard-ftp-script.php as well .. http://www.cyberciti.biz/tips/how-to...matically.html let me know if you need any help |
|
|||
|
After digging into my linux box i found that mondo is already configured on my machine for backup. you can see in /var/local/sbin/mondoarchieve
Code:
echo "New archive made, setting path" PATH=/usr/local/bin:$PATH export PATH echo "Path set, running mondo" ### run mondo mondoarchive -Ot -d /dev/st0 -T /tmp -F -l GRUB -f /dev/hda -E "/usr/pub /var/mdaemon /var/tars" echo "Mondo ran, emailing the logs" ### trim the log and email me the log file tail -200 /var/log/mondo-archive.log > /tmp/mondo-archive.stripped mail -s "Mondo Archive Report" me@mydomain.com.au < /tmp/mondo-archive.stripped rm /tmp/mondo-archive.stripped /usr/bin/eject /dev/st0 |
|
|||
|
Code:
echo "New archive made, setting path" PATH=/usr/local/bin:$PATH export PATH Code:
echo "Path set, running mondo" ### run mondo mondoarchive -Ot -d /dev/st0 -T /tmp -F -l GRUB -f /dev/hda -E "/usr/pub /var/mdaemon /var/tars" Code:
echo "Mondo ran, emailing the logs" ### trim the log and email me the log file tail -200 /var/log/mondo-archive.log > /tmp/mondo-archive.stripped mail -s "Mondo Archive Report" me@mydomain.com.au < /tmp/mondo-archive.stripped rm /tmp/mondo-archive.stripped Code:
/usr/bin/eject /dev/st0 |
|
|||
|
In the mail i got this message?
New archive made, setting path Path set, running mondo Initializing... See /var/log/mondo-archive.log for details of backup run. Checking sanity of your Linux distribution Done. Fatal error... output folder does not exist - please create it ---FATALERROR--- output folder does not exist - please create it Please try the snapshot (the version with 'cvs' and the date in its filename)to see if that fixes the problem. Please don't bother the mailing list withyour problem UNTIL you've tried the snapshot. The snapshot contains bugfixeswhich might help you. Go to http://www.mondorescue.org/download/download.htmlFor more information. Log file: /var/log/mondo-archive.log FYI, I have gzipped the log and saved it to /tmp/MA.log.gz Mondo has aborted. Execution run ended; result=254 Type 'less /var/log/mondo-archive.log' to see the output log Mondo ran, emailing the logs |
|
|||
|
Quote:
It is trying to access the tape drive /dev/st0. So, may be you can change the code Code:
mondoarchive -Ot -d /dev/st0 -T /tmp -F -l GRUB -f /dev/hda -E "/usr/pub /var/mdaemon /var/tars" Code:
mondoarchive -Ot -d /backup -T /tmp -F -l GRUB -f /dev/hda -E "/usr/pub /var/mdaemon /var/tars" and then, as Vivek said, ftp the backup to another system or your NAS( if you have one) ricc |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help (Linux Backup) | santoshkamane | Linux software | 2 | 04-29-2005 10:18 PM |