April 19, 2024, 12:44:51 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Backup Script  (Read 3453 times)

Offline zubair

  • New Member
  • Posts: 2
Backup Script
« on: April 11, 2006, 04:45:39 AM »
Hello to All   " LinuxSolved Family "

I have installed FedoraC4 as a file server in my orgnization,


Right now i am taking manual backup of my file server to my Backup Machine or Backup Server.

Now..

i want to take automatic backup of my file server to another computer or machine of LAN .  for security purpose.

I think  i have to write script for that but i am not able to do that so any body can help me to resolve this query.


Waiting for Reply

Regards,

Zubair    :P

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Backup Script
« Reply #1 on: April 11, 2006, 12:38:44 PM »
There was a similar discussion about automatic backup .. give a look to it --> Automatic Backup

Offline zubair

  • New Member
  • Posts: 2
Backup Script
« Reply #2 on: April 11, 2006, 02:01:54 PM »
Hello ,

Thank for Responding ...

Actually i am taking manually backup of my file server to backup server with scp command. both machine's are in the same LAN.

command like scp -pqrv root@192.168.1.25:/home root@192.168.1.24:/home

after running this command its asking for root passwod of 192.168.1.25 machine and after that 192.168.1.24 means first destination and second source so i have to put password manully for the both root .


Now i want to make a script for manually backup means if script will run so no need to type password. it should accpet password automatically  from the script.

And after making that script i can put that script in to crown jobs.

i have go through with your suggestion but i didn't found any thing that i want so can you give me another solution for my query..



Regards,

Zubair

 :P

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Backup Script
« Reply #3 on: April 12, 2006, 06:47:50 PM »
I can see that you have posted yoursame question twice as new thread anyways..

Well, you may now need to wait as someone with proper knolwedge in bash scripting can help you here better.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Backup Script
« Reply #4 on: April 13, 2006, 01:02:27 PM »
Why dont you genarate ssh-keygen i.e trusted keys ..after that it will not ask u for the password.....

Just follow this link

http://www.akadia.com/services/ssh_scp_without_password.html

Gaurav