Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for backup ideas/solutions

Status
Not open for further replies.

sbrews

Technical User
Jun 11, 2003
413
US
I have an environment where I need to do backups. There are no tapes drives nor are they an option. Removable media (ie dvd) is not an option either as they wouldnt be big enough and I am remote to the servers. The only thing I have available (at this time) is NAS. The servers are primary Orable DB servers - but there is a small mix of other files as well.

- If you back up to NAS, what software/scripts/other do you use?
- Did you have to do any special NAS file system setup?

- Aside from getting tape drives for the servers, what are some other viable backup methods?

For any suggestions, assume typical backup requirements - ie incremental, full, short term recovery (ie 6 months), long term recovery (ie 5 years), being able to manage from a central/remote location, etc.
 
Hello "sbrews"
I put the code I use to backup from Debian,
that takes place every day at 23:45 hours, sending a copy to a "NAS" home of the manager of the company.
We need to first adjust:
1) in /home/[user] ---> create file " .netrc " to store passwords auto/ftp.
.netrc contains:
machine [nameNAS] login [loginNAS] password [passwdNAS]
change permissions at " .netrc " ===> chmod 600 .netrc
===========================================================================
2) in /etc/hosts create entry for nameNAS as:
212.59.199.23 nameNAS
==========================================================================
3) create your cron
# cron -e -u [user]
45 23 * * * /home/[user]/copy-backup
========================================================================
4) create file order for backup
# copy-backup
Bash:
name_file=`date '+%y%m%d%H%M%S'`

/bin/tar cfz /tmp/$name_file /home/[user]
ftp nameNAS >/tmp/copy-backup.log <<-END_SESION
lcd /tmp
cd /[directory or reserved for the backup section within the NAS]
put $name_file
dir
bye
END_SESION
=============================================================================
5) change permissions at " copy-backup " ===> # chmod 770 copy-backup
change user & group ===> # chgrp [user]:[group] copy-backup
====================================================================================

and this is all for a daily full backup,
in null traffic hours.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top