This is a discussion on Redhat rhel4 backup script using tar within the Linux software forums, part of the Linux Getting Started category; How do I write a backup shell script using tar for RHEL 4 or RHEL 5 server? TIA...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
How do I write a backup shell script using tar for RHEL 4 or RHEL 5 server?
TIA
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
| Sponsored Links | ||
|
|
|
||||
|
Your can write something as follows:
Code:
#!/bin/bash DIRS="/home /var /data2" NOW="$(date +"%d-%m-%Y)" OUTPUT="/nas/backup.$NOW.tar.gz" tar -zcvf $OUTPUT "$DIRS" How to backup MySQL databases, web server files to a FTP server automatically Howto Backup PostgreSQL Databases Backup - Bash shell scripts directory |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FTP Backup script with cleanup of FTP | arcadLemon | Shell scripting | 1 | 10-08-2007 01:32 AM |
| MySql FTP server backup script | zafar466 | Shell scripting | 3 | 09-25-2007 06:43 PM |
| need help in writing backup script | vishaltitre | Shell scripting | 4 | 05-23-2007 11:07 PM |
| MySQL Backup Script | krisa | Shell scripting | 1 | 02-03-2007 12:57 AM |
| want a script keep backup of all users history. | ricc | Shell scripting | 3 | 08-26-2005 01:30 AM |