backup on 2nd hard of 2nd server!

manghooli

Well-Known Member
Aug 22, 2004
55
0
156
How can i backup accounts of FIRST server to SEOCND HDD of SECOND server?!

maybe the main question was how can i create a safe FTP account in PureFTPd?!

Thanks
 

eth00

Well-Known Member
PartnerNOC
Mar 30, 2003
721
1
168
NC
cPanel Access Level
Root Administrator
I would suggest using rsync or scp.

SCP is file transfer over a ssh tunnel so as long as you can login to the shell as the user you can transfer files.

Rysnc is used to sync files, it will only transfer the files that have changed.
 

manghooli

Well-Known Member
Aug 22, 2004
55
0
156
Thanks :)

so i should use a backup script to do that for me, is there any script in the Internet?!

Thanks
 

blweb

Active Member
Oct 1, 2004
41
0
156
rsync

I use this as my script, yet i haven't figured out how to get it fully functional:

rsync --port=23 -P -v -z -a -e "ssh -p 23 -l root" --exclude "/proc" --exclude "/var/log" --exclude "/usr/backup" --delete clienthost.com:/ daily.1

I ideally would like it to reflect:

rsync --port=23 -z -a -e "ssh -p 23 -l root" --exclude "/proc" --exclude "/var/log" --exclude "/usr/backup" --delete clienthost.com:/ daily.1 touch daily.1

but it returns an error of :

rsync error: syntax or usage error (code 1) at main.c(933)




dalem said:
Just Back up FIRST server to your normal back up location on that server
and set up a public key to server 2 and set up a cron job to scp the backups to run once a day


thats what I do :)
 

manghooli

Well-Known Member
Aug 22, 2004
55
0
156
can we mix cpanel backup solution with rsync??
or
can we use simple CPanel FTP Backup solution for this reason?!

oops, i must read a lot about rsync n test it a lot :)