Posts

Showing posts with the label Backup

Backup home directory shared server

rsync --exclude=BKHOME --password-file=/backup_script/pass -avz -u --bwlimit=5000 root@192.227.84.98::home/a[d-f]* /backup_script/INDIA/192.227.84.98/DAILY/home > /backup_script/INDIA/192.227.84.98/logs/home-ad-af.log 2>&1 rsync --exclude=BKHOME --password-file=/backup_script/pass -avz -u --bwlimit=5000 root@192.227.84.98::home/[b-c]* /backup_script/INDIA/192.227.84.98/DAILY/home > /backup_script/INDIA/192.227.84.98/logs/home-b-c.log 2>&1 root@192.227.84.98::home/[m-o]* rsync --exclude=BKHOME --password-file=/backup_script/pass -avz -u --bwlimit=5000 root@192.227.84.98::home/s[b-d]* /backup_script/INDIA/192.227.84.98/DAILY/home > /backup_script/INDIA/192.227.84.98/logs/home-sb-sd.log 2>&1 root@192.227.84.98::home/s[j-t]* #!/bin/sh Date1=`date +%d-%m-%Y` T1=`date +%H-%M` rsync --password-file=/backup/pass -avz -u --bwlimit=5000 root@192.168.2.43::var/log/ /backup/INDIA/directadmin43/DAILY/var/log/ > /backup/INDIA/dir...

backup script for linux server using rsync deamon

/usr/local/mysql/bin/mysql -u ador_indiatestDB -p ador_indiatestDB < ador_indiatestDB.sql For backup, we have daily and weekly for weekly we mention --delete even for database both daily and weekly with ---delete will run the server whose backup needs to be set up there will be a script to create database dump backup daily  on backup_parent_dir="/usr/src/bacula/ then we rsync this folder to our backup server get root password for mysql DA cat /usr/local/directadmin/conf/mysql.conf [root@sm254 ~]# crontab -l 13 01 * * * /bin/sh /home/sas/dbbackup_scripts.sh &> /home/sas/dbbackup_scripts.log 00 01 * * * /bin/sh /home/sas/alldatabase.sh &> /home/sas/allbbackup_scripts.log [root@sm254 ~]# cat /home/sas/dbbackup_scripts.sh #!/bin/bash # Simple script to backup MySQL databases # Parent backup directory backup_parent_dir="/usr/src/bacula" # MySQL settings mysql_user="root" mysql_password="&jQ6$99q#F" # Read MySQL password from stdin if e...

Backup

Backupsheep.com Aws backup https://aws.amazon.com/backup/ IF THE server is in digital ocean then backup type will be Backupsheep https://support.serverguy.com/support/serverguy/ShowHomePage.do#Solutions/dv/2183050000 04674174