LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automated Backup Script (https://www.linuxquestions.org/questions/linux-newbie-8/automated-backup-script-593855/)

mukundmurari 10-23-2007 02:04 AM

Automated Backup Script
 
Hi All !

My senior has given me this assignment plz give me step by step Procedure. i am very new to linux. plz help !!

we set up one linux machine to have a directory specifically for the 192.168.1.11 backup(this is our file server which needs to be backedup), we share that directory using NFS (chkconfig nfs on & vi /etc/exports) to make it accessible by 192.168.1.11 only. Then we mount that directory automatically on 192.168.1.11 (create /mnt/backup and add it to /etc/fstab). Now we can create a tar command that backups all files to new linux machine(for backup) as a .tgz file preserving permissions. Once you have the command working we can schedule it using cron. Please investigate how to do this by using Google, etc. and looking at the various files on the existing servers. Write a document showing what files need changing and what we should add. Do not change any of the files until you have finished the document and I have reviewed it.

PLZ HELP !

Thankx

MAX

coolpal 10-23-2007 05:58 AM

U better do this by writing a shell script which does the following
1. SSH to ur fileserver
2. SCP all ur file server files to ur backup machine
3. make a tar.gz of the copied files and give it a suitable name using date in the filename

I guess this will serve ur purpose

unSpawn 10-23-2007 07:18 AM

Quote:

Originally Posted by mukundmurari (Post 2933401)
My senior has given me this assignment plz give me step by step Procedure. i am very new to linux.

Your senior gave the assignment for you to learn from it probably *since* you are new to GNU/Linux. Instead you come here asking for hand-holding in a way that's IMNSHO close to being against the rules (homework). So basically if somebody posts a ten step list you will have learned nothing. Break down your task into components, understand the basics for each bit (and he even explicitly tells you you can find the examples on your other servers, FCOL!), then write the steps. If you are unsure about those steps *then* post those here for review. You'll learn nothing if you ask someone else to do your research for you.


All times are GMT -5. The time now is 01:21 AM.