Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Backup

Simple Backup Script with logrotate

A simple backup script using logrotate to save multiple backups. I use a NFS storage mounted via autofs as backup location. Database Backup is optional. #!/bin/bash # Backup Target (Network Share mostly via autofs) BACKUP_DIR=”/tmp/foo” # Number of Backups BACKUP_NUM=3 # Directories to backup SOURCE_DIRS=”/var/www /var/log /etc” # Backup savelog -n -l -q -c $BACKUP_NUM […]

,

Notebook Backup to external crypted disk

Here is the documentation, how i making backups of my notebook. I use a external USB harddisk, which is connected to my docking station. On system logon, i check if the external disk is present and mount it. A cronjob starts a backup script, which creates backups with rsync if the backup partition is mounted. […]

, , , ,