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
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
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)
.........
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/
........