LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-03-2007, 02:14 AM   #1
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
Question Monitor copying backup


hi

I hv a file server and one backup. for backup I wrote a script ....

***********************
mount -t ext3 /dev/VolGroup01/LogVol00 /backup
cp -dpruv --reply=yes /All folder /backup
cp -dpruv --reply=yes /home /backup
cp -dpruv --reply=yes /etc /backup
cp -dpruv --reply=yes /etc /backup
umount /backup


......................
Its run by crontab. and looks ok and backed up everyday in specific time.


I want to copy the display report in a file when copying. So that I can see is there anything wrong in copying.

can u help me plz!!!!!!!!!!!!
 
Old 07-03-2007, 07:10 AM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Redirect your output to /tmp/backup_log file.

Code:
# Remove old backup log file
rm -f /tmp/backup_log
# Create a new backup log file 
touch /tmp/backup_log

#Script 
mount -t ext3 /dev/VolGroup01/LogVol00 /backup
cp -dpruv --reply=yes /All folder /backup >> /tmp/backup_log
cp -dpruv --reply=yes /home /backup >> /tmp/backup_log
cp -dpruv --reply=yes /etc /backup >> /tmp/backup_log
cp -dpruv --reply=yes /etc /backup >> /tmp/backup_log
umount /backup
 
Old 07-04-2007, 07:03 AM   #3
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
Thanks a lot for helping me its working nice
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
copying windows xp via a hdd backup to linux dj2187 General 11 12-15-2006 05:26 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
Error when attempting backup with File Backup lglrgl Linux - Software 0 08-03-2006 10:38 AM
How to keep restorable monitor and 3D settings tar backup simple save configurat zaphod111 Linux - Newbie 2 11-08-2003 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration