Backup script sample
1 Describes the language
2 Shows message "packing files in progress..." on the screen
3 Packing file /root/install.log and folder /lib in archive /home/backup/root_lib-19.10-19-06-13.tar
4 Packing file of virtual machine /dev/vg-virt/kvm110_img which is in use without suspending the VM. Archive name format: kvm110-19.10-19-06-13.gz
5 Find and delete files older than 6 days in folder /home/backup/
6 Shows message "completed" on the screen
So script can be placed in crontab to be scheduled 2 times a week and it will store 2 actual backups and remove older ones.
Was this answer helpful?
please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...
How to install nginx on Centos Add nginx repo first. To add it, create the file...
How to install Squid with authentication on Centos 6 >>Get VPS with current...
Set host name on Centos: /etc/sysconfig/network HOSTNAME="mycomputer"...
If you want to redirect/nat some traffic to IP 126.96.36.199 via IP 188.8.131.52, it simply can be done...
Powered by WHMCompleteSolution