Rsync backup script

#!/bin/bash
## Rsync File Backup Script
## Version 0.1
## License pending
##
## This script PULLS backups. It should be run on the server
##storing the backups.
##
## You need to create a ssh keypair between the two servers
## for this to work properly!
##

## Variables go here!
# Exclude line
# (Must be in the format of: ” –exclude file1 –exclude dir1″ etc.)
exclude=” –exclude aquota.user –exclude vpopmail”

# rsync switches (see rsync –help or man rsync for more information)
rswitch=” –archive –delete –compress -vv –rsh=ssh”

# Local backup …

Read On »

Backup script

#!/bin/bash
## RSFBS – Really Simple File Backup Script
##
## Version 0.5
##

## Variables go here!
# General base backup directory, All the subdirectories will be
# created under here.
basedir=/backup

# Let’s name our backup file, the date will be appended to this
backupname=domain-files

# Network Attached Storage Directory. This could be
# anywhere, but we keep it under the basedir to keep Tengu sane.
# If you don’t have a NAS or NFS drive, leave this blank.
nasdir=$basedir/nas

# Target Directory to backup
backupdir=/home/domain/public_html

# How many backups do we want to keep? …

Read On »

 Page 2 of 2 « 1  2