backup Shell Scripting Need


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting backup Shell Scripting Need
# 1  
Old 10-30-2010
backup Shell Scripting Need

Dear All,

Am handing the 5 remote server and one backup server. all the server are the online server. so need backup files from the remote server to backup server. i need shell script with using the scp backup. Sorry for my poor english

Thank you
# 2  
Old 10-30-2010
there are a lot of scenarios..but it think every server can accomplish itself when server is appropriate times so is can be `local copy to backupserver`

server1 -to backup server can automatize with crond.

[ and must be trust between servers and backupserver with ssh key verification and
must be backupuser with non-root perm on the backupserver just except write permission on "/usr/local/bin/backups/" ]

maybe like below something (you can specialize script to what your requisitions)

Code:
.........
cd localbackupfolder/
tar czvf "backup_`hostname -s`_`date +%Y_%m_%d__%H_%M_%S`.tar.gz" *
scp backup_`hostname -s`_*.tar.gz backupuser@backupserver:/usr/local/bin/backups/ 
........

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

2. Shell Programming and Scripting

To refire a backup job using shell scripting..........

how to write a code using shell scripting to refire a back up job if it fails with an error code of 196? (7 Replies)
Discussion started by: Pawan Ramnani
7 Replies

3. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

4. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

5. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

7. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

8. Shell Programming and Scripting

New to scripting. Help with backup script

Just learning how to script and am trying to create a script that will: *change ownership to nobody *change permissions to rw *tar the directory *back it up to a share *remove backups older than 14 days I will be doing this on a RHEL 5.3 box on my home network as... (2 Replies)
Discussion started by: daledavis67
2 Replies

9. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

10. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
Login or Register to Ask a Question